Omron SYSMAC CS Series Instruction & Reference Manual page 825

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Related Flags in the CPU Bus Unit Area
 (n = CIO 1500 + 25 × unit number)
Word
Port 1
Port 2
n+9
n+19
Function
• TXDU(256) reads N bytes of data from words S to S+(N+2)-1 and outputs the raw data in no-protocol
mode to the Serial Communications Unit with the unit address specified in bits 0 to 7 of C+1, through
the port specified with bits 8 to 11 of C+1. The logical port number can be set to any value between 0
and 7 and is specified with bits 12 to 15 of C+1.
• The following send-message frame formats can be set in the allocated DM Setup Area.
1) Start code: None or 00 to FF hex.
2) End code: None, CR+LF, or 00 to FF hex.
The data will be sent with any combination of start and/or end codes specified in the allocated DM
Setup Area. If start and end codes are specified, the codes will be added to the send data (N). In this
case, the maximum number of bytes that can be specified for N is 256 bytes.
• Data is sent in the order specified in C.
• The control specification for RS and ER signals specified in bits 4 to 7 of C takes effect as shown
below.
1) If RS signal control is specified in C, bit 15 of S will be used as the RS signal.
2) If ER signal control is specified in C, bit 15 of S will be used as the ER signal.
3) If RS and ER signal control is specified in C, bit 15 of S will be used as the RS signal and bit 14 of
S will be used as the ER signal.
If RS and ER signal control is set to 1, 2 or 3 hex, data will not be sent.
• The maximum number of bytes that can be sent is 259 (send data: maximum of 256 bytes, start
code: 1 byte, end code: CR+LF specification 2 bytes).
• Specify the size of the send data, not including the start code and end code, in N.
• The logical port number can be allocated automatically by setting bits 12 to 15 of C+1 to F. For
details, refer to Automatically Allocating Communications Ports (i.e., Internal Logical Ports) in
SECTION 3 Instructions - Network Instructions.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Bit
Name
TXDU Instruction Executing Flag
05
Status
0: TXDU(256) is not being executed.
1: TXDU(256) is being executed.
3. Instructions
3
791

Advertisement

Table of Contents
loading

Table of Contents