7-30
Section
Communications Instructions
507
AR 0814 will be turned ON when data has been received normally at the
peripheral port. Reset when RXD(47) is executed.
AR 09:
Contains the number of bytes received at the RS-232C port. Reset to
0000 when RXD(47) is executed.
AR 10:
Contains the number of bytes received at the peripheral port. Reset to
0000 when RXD(47) is executed.
Note
Communications flags and counters can be cleared either by specifying 0000 for
N or using the Port Reset Bits (SR 25208 for peripheral port and SR 25209 for
RS-232C port.)
7-30-2
TRANSMIT – TXD(48)
S:
First source word
IR, SR, AR, DM, HR, TC, LR
C
: Control word
#
Ladder Symbols
Operand Data Areas
N:
Number of bytes
IR, SR, AR, DM, HR, TC, LR, #
TXD(48)
S
C
N
@TXD(48)
S
C
N
Limitations
This instruction is available in the
CPM2A/CPM2C and SRM1(-V2) only
.
S and S+(N
÷
2)–1 must be in the same data area.
DM 6144 to DM 6655 cannot be used for S or N.
N must be BCD from #0000 to #0256. (#0000 to #0061 in Host Link mode)
Description
When the execution condition is OFF, TXD(48) is not executed. When the
execution condition is ON, TXD(48) 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(48) operates differently in Host Link mode and RS-232C mode, so these
modes are described separately.
Note
1. Flag AR 0805 will be ON when the PC is capable of transmitting data
through the RS-232C port and AR 0813 will be ON when the PC is capable
of transmitting data through the peripheral port.
2. Refer to
4-1 Communications Functions
for details on using the TXD(48)
instruction, setting communications protocol in the PC Setup, etc.
Host Link Mode
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.
Not used. (Set to 000.)
Port
0: Specifies RS-232C port.
1: Specifies peripheral port.
Digit number:
3 2 1 0
Содержание SRM1 - PROGRAMING 02-2001
Страница 1: ...Programmable Controllers Cat No W353 E1 06 SYSMAC CPM1 CPM1A CPM2A CPM2C SRM1 V2 PROGRAMMING MANUAL ...
Страница 2: ...CPM1 CPM1A CPM2A CPM2C SRM1 V2 Programmable Controllers Programming Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x ...
Страница 15: ...xvi ...