Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 851

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Serial Communications Instructions
818
If ER signal control is specified in C, bit 15 of S will be used as the ER signal.
If RS and ER signal control is specified in C, bit 15 of S will be used as the RS
signal and bit 14 of S will be used as the ER signal.
If 1, 2, or 3 hex is specified for RS and ER signal control in C, TXD(236) will be
executed regardless of the status of the Send Ready Flag.
An error will occur and the Error Flag will turn ON in the following cases.
• No-protocol mode is not set for the port in the PLC Setup.
• The value of C is not within range.
• The value for N is not between 0000 and 0100 hex.
• A send was attempted when the Send Ready Flag was OFF.
Related PLC Setup Settings
The following PLC Setup settings must be made for the serial port 1 or serial
port 2 executing TXD(236) after setting the communications mode to no-pro-
tocol (RS-232C mode).
Setting
Communications Settings Standard
Start Code
End Code
Received
Bytes
End Code
Delay
Auxiliary Area
Name
Serial Port 1 Send Ready
Flag
Serial Port 2 Send Ready
Flag
Description
The standard settings are as follows:
9,600 baud, 1 start bit, 7-bit data, even
parity, and 2 stop bits.
Custom
Baud: 300, 600, 1,200, 2,400, 4,800,
9,600, 19,200, 38,400, 57,600, or
115,200 bps
Format: 7- or 8-bit data; 1 or 2 stop
bits; even, odd, or even parity
Disable
---
Set
00 to FF hex
No
---
Yes
00 hex: 256 bytes
01 to FF hex: 1 to 255 bytes
No
---
CR/LF
---
Set
00 to FF hex
0000 to 210F hex: 0 to 99,990 ms (10-ms units)
Address
A392.13
ON when data can be sent in no-proto-
col mode.
A392.05
Section 3-23
Contents

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents