Specifications

2 RS232 I/O Support
2-32
RS-232 Send/Receive Message Structure
(
Synchronous)
Below are descriptions of the possible message fields for the send /receive
structures with asynchronous mode. The order of the fields does not matter.
However, the field names are case sensitive.
Messge
Field
Description
SendData Data and format sent to the RS-232 device. Default
value =
’’.
InputPorts Number of input ports for the driver block. Data from the
input ports is sent to the RS-232 device with the message
field
.SendData. Default value = []. The highest number you
enter determines the number of input ports on the driver
block.
For example, the following message creates two input ports
on the driver block,
RS232_Send_Receive(1).InputPorts= [1 2];
RecData Data and format received from the RS-232 device. Default
value =
’’. The format of this statement is very similar to a
scanf statement. The read data is mapped to the output
ports defined in the message field
.OutputPorts. If a
negative output port is given, the data is read in, but not
sent to any output port.
OutputPort
s
Number of output ports from the driver block. Data received
from a RS-232 device is sent to the output ports with the
message field
.ReceiveData. Default value = []. The
highest number you enter determines the number of output
ports on the driver block.
For example, to use output ports 1 and 2 on the driver block,
type
RS232_Send_Receive.OutputPorts = [1 2];