Hello,
Controller DX200 / YRC1000
I have no problem but I would like to optimize my robot/PLC programs and know your way of working.
My robots work with several stations controlled by an external controller. I would like to share the type of exchange you use to authorize, for example, the robot to load a part onto a station.
Below example of program with robot to PLC exchange
***************
'SYNCHRO
DOUT OT#(395) OFF // info put part OK (Robot to PLC)
IFTHENEXP IN#(281)=OFF // info authorization put part (PLC to Robot)
SET I031 18 // Message HMI robot waiting
WAIT IN#(281)=ON
SET I031 0
ENDIF
'MOVE PUT PART
MOVL LP000 V=50.0 PL=0 DEC=20
'SYNCHRO
DOUT OT#(395) ON
IFTHENEXP IN#(281)=ON
SET I031 19
WAIT IN#(281)=OFF
SET I031 0
ENDIF
'MOVE CLEARANCE
SFTON P120 UF#(1)
MOVL LP000 V=1500.0 PL=4
SFTOF
'SYNCHRO
DOUT OT#(395) OFF
END
***************