Omron SYSMAC CS Series Instruction & Reference Manual page 823

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

Advertisement

TXDU
Instruction
TRANSMIT VIA SERIAL
COMMUNICATIONS UNIT
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
C
Control word
N
Number of bytes 0000 to 0100 hex (0 to 256)
C: Control word
15
12
11
8
7
4
3
C
Always 00
RS and ER signal control
0: No RS and ER signal control
1: RS signal control
2: ER signal control
3: RS and ER signal control
Note: If set to 1, 2 or 3, data will not be sent.
Note The serial port's unit address can be specified directly by setting the serial port number to 0 and setting the
destination unit address to the serial port's unit address. (Set the destination unit address to 80 hex + 4 ×
unit number for port 1 or 81 hex + 4 × unit number for port 2.)
 Operand Specifications
Word addresses
Area
CIO
WR
HR
S
C
OK
OK
OK
N
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
TXDU
@TXDU
Block program areas
Step program areas
OK
OK
Description
0
Byte order
0: Most significant bytes first
1: Least significant bytes first
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Function
code
Outputs the specified number of bytes of data
from one of the Serial Communications Unit's
256
serial ports. (The Serial Communications Unit
must be Ver. 1.2 or later).
TXDU
TXDU(256)
S
S: First source word
C
C: First control word
N
N: Number of bytes
0000 to 0100 hex (0 to 256)
Subroutines
OK
15
12
11
8
7
4
C+1
Serial port number
0: Specify directly. (See note.)
1: Port 1
2: Port 2
Port number specifier
(Internal logical port)
Specify 0 to 7 or F.
(F: Automatic allocation)
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
OK
OK
OK
OK
3. Instructions
Function
SFC action or
Interrupt tasks
transition programs
OK
OK
Data type
Size
UINT
Variable
UDINT
2
UINT
1
3
0
Destination unit address (See note.)
Serial Communications Unit's unit
address (unit number + 10 hex)
Registers
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
3
TR
bits
---
---
789

Advertisement

Table of Contents
loading

Table of Contents