4
1. Ethernet
4-33
Netw
Read Bits from PLC Memory
int HKEtn_ReadPlcBitMemory(int *lpOnFlag,int DeviceType,DWORD addr,int
BitNo,char *lpAddr)
This function is retained until PLC data is transferred from the V7 series.
•
Parameters
*IpOnFlag
Returns the bit status.
0: OFF
1: ON
DeviceType
Address of the device to be read (Refer to “Chapter 5 Connection to
PLCs.”)
addr
Top memory address to be read
For YOKOGAWA or YASKAWA PLCs, specify a number “
−
1” for the
address (addr).
Example: D400
→
399 D25
→
24
BitNo
Bit number to be read
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
*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 ().
Read Bits from Internal Memory
int HKEtn_ReadInternalBitMemory(int *lpOnFlag,int DeviceType,DWORD addr,int
BitNo,char *lpAddr)
This function is retained until data is transferred from the V7 series.
•
Parameters
*IpOnFlag
Returns the bit status.
0: OFF
1: ON
DeviceType
0: $u
1: $s
addr
Top memory address to be read
BitNo
Bit number to be read
*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 ().
Содержание Monitouch V7
Страница 1: ...V7...
Страница 3: ......
Страница 17: ......
Страница 57: ......
Страница 95: ...2 38 3 Errors Displayed on the V7 Series Please use this page freely...
Страница 97: ......
Страница 150: ...1 Ethernet 2 FL net OPCN 2 3 MELSECNET 10 4 CC Link 5 OPCN 1 6 T LINK 7 PROFIBUS DP Network Communications...
Страница 151: ......
Страница 207: ......
Страница 343: ...5 136 29 Automationdirect PLC Please use this page freely...