Answer question
[RTU560] Sending a command to an output card using Structured Text
Hi folks!
I'm currently working with the RTU560 and I want to use it as PLC. For that I've been using the RTUtil560 and the MULTIPROG wt software to configure the device and create the PLC application.
The RTU has 2 binary input cards and 1 binary output card properly configured in RTUtil560. The objective is to send a command to the output card according to the values of the inputs. So, I'm writting a small Structured Text program, but I can't send a command to the output card.
The variables are 1 DPI input variable called voltaje_0 and 1 DCO output variable called PUMP0. The manual says the values for these variables are accessed by voltaje_0.Value and PUMP0.Value and both are bytes, but only the the first two bits are important.
The debugging system of multiprog gives me the values of both variables in the format 16#01 or 16#02 (hex?), so when I do, for example PUMP0.Value:=16#02, the compiler says:
"Illegal data type operand! [Accu data type: INT; Operand data type: BYTE (POU: 'Main').] (Specific Code Generator)"
So, how can I send a command to the output card?
Best regards,
Charlie