4
1. Ethernet
4-39
Netw
Write Bits to PLC Memory
int HKEtn_WritePlcBitMemory(int DeviceType,DWORD addr,int BitNo,int
OnFlag,char *lpAddr)
This function is retained until write completion is received from the V7 series. (It is reset on
receipt of write completion to the PLC memory.)
•
Parameters
DeviceType
Address of the device to be written (Refer to “Chapter 5 Connection
to PLCs.”)
addr
Top memory address to be written
For YOKOGAWA or YASKAWA PLCs, specify a number “
−
1” for the
address (addr).
Example: D400
→
399 D25
→
24
BitNo
Bit number to be accessed
Example 1: When accessing to D20-05 of MITSUBISHI PLC
DeviceType
0
addr
20
BitNo
5
Example 2: When accessing to M20 of MITSUBISHI PLC
20
÷
16 = 1 ... 4
DeviceType
6
addr
1
BitNo
4
OnFlag
0: OFF
1: ON
*lpAddr
IP address shown as a string of characters separated by dots
Example: “192.168.XXX.XXX”
•
Return values
Success
TRUE
Failure
FALSE
Error details
Get using HKEtn_GetLastError ().
Summary of Contents for Monitouch V7
Page 1: ...V7...
Page 3: ......
Page 17: ......
Page 57: ......
Page 95: ...2 38 3 Errors Displayed on the V7 Series Please use this page freely...
Page 97: ......
Page 151: ......
Page 207: ......
Page 343: ...5 136 29 Automationdirect PLC Please use this page freely...