Epson V7 Manuale Utente
![Epson](https://files.manualsbrain.com/attachments/a47e008ef11c984ab8b71f0fc83873b5a963bd98/common/fit/150/50/31cec7b3b2e304c684d8acb1063f7a8423171db6df8832d86330b0432118/brand_logo.png)
4
1. Ethernet
4-29
Netw
Read
Read Words from PLC Memory
int HKEtn_ReadPlcMemory(WORD *dp,unsigned short Wordcnt,int
DeviceType,DWORD addr,char *lpAddr, int DFlag=1)
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. 2000 words)
DeviceType
Address of the device to be read (Refer to “Chapter 5 Connection to
PLCs.”)
PLCs.”)
addr
Top memory address to be read
For YOKOGAWA or YASKAWA PLCs, specify a number “
For YOKOGAWA or YASKAWA PLCs, specify a number “
−1” for the
address (addr).
Example: D400
Example: D400
→ 399 D25 → 24
*lpAddr
IP address shown as a string of characters separated by dots
Example: “192.168.XXX.XXX”
Example: “192.168.XXX.XXX”
DFlag
0, 1, 2 (Refer to the table below.)
• Return values
Success
TRUE
Failure
FALSE
Error details
Get using HKEtn_GetLastError ().
• Priority and communication procedure depending on the DFlag setting are shown
below.
Contents
Word Count
No. 1
1
No. 2
1
•
•
•
•
•
•
No. n
1
DFlag
Priority
Communication Procedure
0
Communications
1
Display
2
Display
PC
Read/write request
V7
PLC
Memory card
Response
Acknowledge of completion
Response
PC
Read/write request
V7
PLC
Memory card
Acknowledge of completion