Download NAPOPC_CE6 DA Server
Transcript
NAPOPC_CE6 DA Server User’s Manual 4.4.1.4 UserShare Function These functions allow users to add their own variables into share memory block for sharing the values with different application program. The data using these functions can not be accessed by modbus client and OPC client. UerSetCoil The function can set an unsigned char variable into share memory block. Syntax [VC++] unsigned char UserSetCoil(unsigned short iUserAddress, unsigned char iStatus) [VB.NET/VC#.NET] byte UserSetCoil(ushort iUserAddress, byte iStatus) Parameters iUserAddress [in] The address which you want to set into. The range of address is from 1 to 19999. iStatus [in] unsigned char variable. Return Values 0 indicates success. WCA_USERADDR_OVER means the iUserAddress over the range. The legal range is from number 1 to number 19999. Remarks Requirements Runs on Versions XP-8000-CE6 1.3.1.0 and later Example [VC++] //Set coil value into address 1 UserSetCoil(1,1); Defined in Quicker.lib Include WinConAgent.h [VB.NET] Quicker.UserShare.UserSetCoil(1, 1) [VC#.NET] Quicker.UserShare.UserSetCoil(1, 1); Ver: 1.00 Date: Oct-29 2010 Page: 102 Link to