How to connect OPTA with 8 Channels RS485 Relay?

Dear all,

Hi, this is Jeong-moo Hwang from South Korea.

I would like to ask some questions regarding OPTA and 8 channels RS 485 Relay.

I did the code by using the Arduino PLC IDE. Plus, I set up the RS485 Serial Port, modbus address, Slave ID something like that. However, It does not work. Definitely, I though it is the problem of coding ST langauge.

If you do not mind, could you help me?

Thanks all.

Jeong-moo Hwang.


code as follow as :

humithreshold := 50.00;
tempthreshold := 25.00;

MbMRtuNetList[1].chn := MbChn_1;
MbMRtuNetList[1].adr := 2;

IF MbMRtuNetList[1].active = FALSE THEN
LEDG := FLASE;
ELSE
LEDG := TRUE;

temp := temp_volt / 10.00;
humi := humi_volt / 10.00;

IF temp >= tempthreshold THEN
LED1 := TRUE;
ELSE
LED1 := FALSE;

IF humi >= humithreshold THEN
LED2 := TRUE;
ELSE
LED2 := FALSE;
END_IF;


Picture as follow as :