Physical connection: Ethernet cable direct or via switch, built-in Ethernet ports (there’s no need any additional equipment)
IP addresses: FX5 (192.168.3.250), Robot (139.168.3.1)
Robot IP
Robot connection settings
'Communication program - data exchanging with PLC (Ethernet Native Strings)
'running mode: ALWAYS (Slot Table parameters)
'
If M_Open(1) <> 1 Then 'Opening port no 10005
Open "COM5:" As #1
Wait M_Open(1)=1
EndIf
'
Print #1,"03" 'data (string) sending
'
*A
Input #1,c100$ 'all input from PLC (string)
M_11=Val(c200$) 'data conversion and writing to global variable M_11
'
Print #1,M_21 'data conversion to string and sending
If M_Cstp<>1 Then GoTo *A
End