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

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

Advertisement

Communications Instructions
7-30-2 TRANSMIT – TXD(48)
Limitations
Description
Host Link Mode
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.)
Ladder Symbols
TXD(48)
S
C
N
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)
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.
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
@TXD(48)
S
C
N
Not used. (Set to 000.)
Port
0: Specifies RS-232C port.
1: Specifies peripheral port.
Section
Operand Data Areas
S: First source word
IR, SR, AR, DM, HR, TC, LR
C: Control word
#
N: Number of bytes
IR, SR, AR, DM, HR, TC, LR, #
7-30
507

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents