Omron SYSMAC C200HS Operation Manual page 309

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Serial Communications Instructions
5-27-2 TRANSMIT – TXD(––)
Limitations
Description
Host Link Mode
Ladder Symbols
TXD(––)
S
C
N
S and S+(N÷2)–1 must be in the same data area.
N must be BCD from #0000 to #0256. (#0000 to #0061 in host link mode)
When the execution condition is OFF, TXD(––) is not executed. When the exe-
cution condition is ON, TXD(––) reads N bytes of data from words S to
S+(N÷2)–1, converts it to ASCII, and outputs the data from the specified port.
TXD(––) operates differently in host link mode and RS-232C mode, so these
modes are described separately.
Note The following flags will be ON to indicate that communications are possible
through the various ports. Be sure the corresponding flag is ON before executing
TXD(––).
SR 26405:
RS-232C port
SR 26413:
Peripheral port
SR 26705:
Host Link Unit #0
SR 26713:
Host Link Unit #1
N must be BCD from #0000 to #0061 (i.e., up to 122 bytes of ASCII). The value of
the control word determines the port from which data will be output, as shown
below.
Digit number: 3 2 1 0
The specified number of bytes will be read from S through S+(N/2)–1, converted
to ASCII, and transmitted through the specified port. The bytes of source data
shown below will be transmitted in this order: 12345678...
@TXD(––)
S
C
N
Byte order
0: Most significant bytes first
1: Least significant bytes first
Not used. (Set to 00.)
Port
0: Specifies RS-232C port
(C200HS-CPU21-E/23-E/31-E/CPU33-E).
1: Specifies peripheral port.
2: Specifies Host Link Unit #0
3: Specifies Host Link Unit #1
MSB LSB
S
1
2
S+1
3
4
S+2
5
6
S+3
7
8
Section 5-27
Operand Data Areas
S: First source word
IR, SR, AR, DM, HR, TC, LR
C: Control word
IR, SR, AR, DM, HR, TC, LR, #
N: Number of bytes
IR, SR, AR, DM, HR, TC, LR, #
299

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents