App5-38
Appendix 5 Ethernet
Write Bits to Internal Memory
int HKEtn_WriteInternalBitMemory(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 internal memory.)
•
Parameters
DeviceType
0: $u
1: $s
2: $L
3: $LD
4: $T
addr
Top memory address to be written
BitNo
Bit number to be accessed
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 ().
Write Bits to Memory Card Memory
int HKEtn_WriteCardBitMemory(int FileNo,int RecordNo,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 memory card memory.)
•
Parameters
FileNo
File number
RecordNo
Record number
addr
Top memory address to be written
BitNo
Bit number to be accessed
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 ().
Others Functions
Initialization Function
int HKEtn_Init(unsigned short Port=10000,int Retry=3,int RecvTime=2,int RecvTime2=10)
Creates a socket.
•
Parameters
Port
Set 10000 or above.
Retry
Number of send retrials
RecvTime
Receive timeout
RecvTime2
Receive timeout 2
•
Return values
Success
TRUE
Failure
FALSE
Error details
Get using HKEtn_GetLastError ().
*1
When “HKEtn_Recvfrom()” is used, the time for [RecvTime] is used for timeout judgment.
*2
When “HKEtn_Readxxx” or “HKEtn_Writexxx” is used, both the times for [RecvTime] and
[RecvTime2] are used for timeout judgment.
Total time for timeout = [RecvTime] x [RecvTime2] x [Retry] (seconds)
*1
*2
Summary of Contents for V Series
Page 1: ...V Series...
Page 35: ...2 10 2 Allen Bradley PLC Please use this page freely...
Page 41: ...3 6 3 Automationdirect PLC Please use this page freely...
Page 49: ...6 4 6 FANUC PLC Please use this page freely...
Page 53: ...7 4 7 FATEK AUTOMATION PLC Please use this page freely...
Page 79: ...12 8 12 KEYENCE PLC Please use this page freely...
Page 95: ...14 8 14 LG PLC Please use this page freely...
Page 119: ...16 20 16 MITSUBISHI ELECTRIC PLC Please use this page freely...
Page 135: ...20 4 20 SAIA PLC Please use this page freely...
Page 155: ...24 12 24 Siemens PLC Please use this page freely...
Page 163: ...27 4 27 TOSHIBA PLC Please use this page freely...
Page 169: ...29 4 29 Toyoda Machine Works PLC Please use this page freely...
Page 185: ...33 6 33 Yokogawa Electric PLC Please use this page freely...
Page 215: ...App2 8 Appendix 2 n 1 Connection Multi link 2 Please use this page freely...
Page 221: ...App3 6 Appendix 3 n 1 Connection Multi link Please use this page freely...
Page 225: ...App4 4 Appendix 4 1 n Connection Multi drop Please use this page freely...
Page 317: ...App6 48 Appendix 6 Universal Serial Communications Please use this page freely...