Omron CPM1 - PROGRAMING MANUAL 02-2001 Programming Manual page 278

Hide thumbs Also See for CPM1 - PROGRAMING MANUAL 02-2001:
Table of Contents

Advertisement

CPM2A/CPM2C Communications Functions
(@)TXD(48)
258
No-protocol communications are controlled with the following AR area flags.
Word
Bit(s)
AR 08
00 to 03
RS-232C Port Error Code
0: Normal completion;
2: Frame error;
04
RS-232C Communications Error Flag
ON: RS-232C port communications error occurred.
OFF: Normal
05
RS-232C Transmit Ready Flag
ON: The PC is ready to transmit data.
06
RS-232C Reception Completed Flag
ON: The PC has completed reading data.
07
RS-232C Reception Overflow Flag
ON: A reception overflow has occurred.
08 to 11
Peripheral Port Error Code
0: Normal completion;
2: Frame error;
12
Peripheral Port Communications Error Flag
ON: A peripheral port communications error occurred.
OFF: Normal
13
Peripheral Port Transmit Ready Flag
ON: The PC is ready to transmit data.
14
Peripheral Port Reception Completed Flag
ON: The PC has completed reading data.
15
Peripheral Port Reception Overflow Flag
ON: A reception overflow has occurred.
AR 09
00 to 15
RS-232C Port Reception Counter (4 digits BCD)
AR 10
00 to 15
Peripheral Port Reception Counter (4 digits BCD)
No-protocol Data Transmission
TXD(48) is used to transmit data to RS-232C devices.
S: Leading address of data to be transmitted
S
C: Control data
C
N
N: Number of bytes to be transmitted (BCD: 0001 to 0256)
When no-protocol communications are being used, TXD(48) transmits N bytes
of data beginning at S.
Contents
1: Parity error;
3: Overrun error
1: Parity error;
3: Overrun error
Storage order
0: Leftmost bytes first 1: Rightmost bytes first
Communications port
0: RS-232C port 1: Peripheral port
Section
4-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents