App5-32
Appendix 5 Ethernet
Read Double-words from PLC Memory
int HKEtn_ReadPlcMemory2(DWORD *dp,unsigned short Wordcnt,int DeviceType,DWORD
addr,char *lpAddr, int DFlag=1)
This function is retained until PLC data is transferred from the V7 series.
•
Parameters
*dp
Target pointer of the data to be read
Wordcnt
Word count to be read (max. 1000 words)
DeviceType
Address of the device to be read (Refer to “Chapter 2.” to “Chapter 33.”)
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
*lpAddr
IP address shown as a string of characters separated by dots
Example:
“192.168.XXX.XXX”
DFlag
0, 1, 2 (Refer to page App5-31.)
•
Return values
Success
TRUE
Failure
FALSE
Error details
Get using HKEtn_GetLastError ().
Read Words from Internal Memory
int HKEtn_ReadInternalMemory(WORD *dp,unsigned short Wordcnt,int DeviceType,DWORD
addr,char *lpAddr,int DFlag=1)
This function is retained until data is transferred from the V7 series.
•
Parameters
*dp
Target block pointer
Wordcnt
Word count to be transferred (max. 2000 words)
DeviceType
0: $u
1: $s
2: $L
3: $LD
4: $T
addr
Top memory address to be read
*lpAddr
IP address shown as a string of characters separated by dots
Example:
“192.168.XXX.XXX”
DFlag
0, 1, 2 (Refer to page App5-31.)
•
Return values
Success
TRUE
Failure
FALSE
Error details
Get using HKEtn_GetLastError ().
Contents
Word Count
No. 1
2
No. 2
2
•
•
•
•
•
•
No. n
2
Contents
Word Count
No. 1
1
No. 2
1
•
•
•
•
•
•
No. n
1
Содержание V Series
Страница 1: ...V Series...
Страница 35: ...2 10 2 Allen Bradley PLC Please use this page freely...
Страница 41: ...3 6 3 Automationdirect PLC Please use this page freely...
Страница 49: ...6 4 6 FANUC PLC Please use this page freely...
Страница 53: ...7 4 7 FATEK AUTOMATION PLC Please use this page freely...
Страница 79: ...12 8 12 KEYENCE PLC Please use this page freely...
Страница 95: ...14 8 14 LG PLC Please use this page freely...
Страница 119: ...16 20 16 MITSUBISHI ELECTRIC PLC Please use this page freely...
Страница 135: ...20 4 20 SAIA PLC Please use this page freely...
Страница 155: ...24 12 24 Siemens PLC Please use this page freely...
Страница 163: ...27 4 27 TOSHIBA PLC Please use this page freely...
Страница 169: ...29 4 29 Toyoda Machine Works PLC Please use this page freely...
Страница 185: ...33 6 33 Yokogawa Electric PLC Please use this page freely...
Страница 215: ...App2 8 Appendix 2 n 1 Connection Multi link 2 Please use this page freely...
Страница 221: ...App3 6 Appendix 3 n 1 Connection Multi link Please use this page freely...
Страница 225: ...App4 4 Appendix 4 1 n Connection Multi drop Please use this page freely...
Страница 317: ...App6 48 Appendix 6 Universal Serial Communications Please use this page freely...