RobotStudio event

Problem

 

I have a problem about RS232 communication with PLC, in rapid program, when running command WriteStrBin channel,”WR M450 1\od”, at PLC side, the M450 is 1, it’s OK.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

My question is, in the rapid program,

 

PERS num RM100:= 0;

PERS num RM101:= 1;

PERS num RM102:= 0;

PERS num RM103:= 1;

PERS num RM104:= 0;

 

I want use command WriteStrBin channel,”WRS M450 5 Data1,Data2,Data3,Data4,Data5\0d”,

 to transfer  RM100 to M450, (0)

RM101 to M451, (1)

RM102 to M452, (0)

RM103 to M453, (1)

RM104 to M454, (0)

 

How to write the code in the rapid?

 

Thanks

 

Best Answer

Answers