Txd1 (Transmit 1); Txd2 (Transmit 2) - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

17: U
C
SER
OMMUNICATION

TXD1 (Transmit 1)

TXD
1
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
X

TXD2 (Transmit 2)

TXD
2
*****
Applicable CPU Modules
FC4A-C10R2/C
FC4A-C16R2/C
Valid Operands
Operand
S1 (Source 1)
D1 (Destination 1)
D2 (Destination 2)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
Transmit data designated by operand S1 can be a maximum of 200 bytes.
When transmission is complete, an output or internal relay, designated by operand D1, is turned on.
Destination 2 occupies two consecutive data registers starting with the operand designated by D2. The transmit status data
register, D0 through D1298 or D2000 through D7998, stores the status of transmission and error code. The next data regis-
ter stores the byte count of transmitted data. The same data registers can not be used as transmit status registers for TXD1/
TXD2 instructions and receive status registers for RXD1/RXD2 instructions.
The TXD1/TXD2 instructions cannot be used in an interrupt program. If used, a user program execution error will result,
turning on special internal relay M8004 and the ERR LED on the CPU module.
Precautions for Programming TXD Instruction
The MicroSmart has five formatting areas each for executing TXD1 and TXD2 instructions, so five TXD1 and five TXD2
instructions can be processed at the same time. If inputs to more than five TXD1 or TXD2 instructions are turned on at the
same time, an error code is set to the transmit status data register, designated by operand D2, in the excessive TXD
instructions that cannot be executed.
If the input for a TXD instruction is turned on while another TXD instruction is executed, the subsequent TXD instruction is
executed 2 scan times after the preceding TXD instruction is completed.
Since TXD instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should
be used as required.
17-6
I
NSTRUCTIONS
S1
D1
D2
*****
*****
FC4A-C24R2/C
X
X
S1
D1
D2
*****
*****
FC4A-C24R2/C
X
X
Function
Transmit data
Transmit completion output
Transmit status register
« FC4A M
When input is on, data designated by S1 is converted into a specified
format and transmitted through port 1 to a remote terminal with an
RS232C port.
FC4A-D20K3/S3
X
When input is on, data designated by S1 is converted into a specified
format and transmitted through port 2 to a remote terminal with an
RS232C. Upgraded CPU modules can also use the RS485 port.
FC4A-D20K3/S3
X
I
— — — — — —
— — — — — —
S
U
'
M
ICRO
MART
SER
S
ANUAL
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
FC4A-D20RK1/RS1 & FC4A-D40K3/S3
X
Q
M
R
T
C
D
X
▲ — — — —
X
X
»
Constant
Repeat
X

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents