Specifications
Introduction to RS-232 Drivers
2-5
For more information on this example, see “Creating RS-232 Message
Structures (Asynchronous)” on page 2-22.
Host and Target PC Communication
If the host PC and target PC are connected using serial communication, one
COM port on the target PC is dedicated for communication with the host PC.
You cannot use this COM port in your block diagram as an I/O device.
For example, if the target PC uses COM1 for the communication with the host
PC, COM1 cannot be used by your block diagram. If you try to use COM1 as an
I/O device in your block diagram, an error message is displayed. The error
message appears when you attempt to build and download the target
application. In this example, it would be necessary for you to use COM2 as an
I/O device in your block diagram.
If you are using TCP/IP as your host PC to target PC communications protocol,
then you can use any of the COM ports for RS-232 I/O.
RS232_Send
RS232_Send(1) . . . RS232_Send(n)
.SendData -
‘start,%f,%f,stop:\;’
.InputPorts -
[1,2]
.Timeout -
0.01
RS232_Receive
RS232_Receive(1)
. . . RS232_Receive(n)
.RecData -
‘start,%f,%f,stop:\;’
.OutputPorts -
[1,2]
.Timeout -
0.01
.Eom -
1