![IDEC OpenNet series User Manual Download Page 232](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384232.webp)
17: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
17-5
Selections and Operands in Transmit Instruction Dialog Box
Transmit Data
Transmit data is designated by source operand S1 using constant values or data registers. BCC code can also be calculated
automatically and appended to the transmit data. One TXD instruction can transmit 200 bytes of data at the maximum.
S1 (Source 1)
Designating Constant as S1
When a constant value is designated as source operand S1, one-byte data is transmitted without conversion. The valid
transmit data value depends on the data bits selected in Configure > Fun Area Settings > Comm Port > Port 1 or 2
Communication Mode Setting (RS232C) > Communication Parameters dialog box. When 8 data bits are selected, 00h
through FFh is transmitted. When 7 data bits are selected as default, 00h through 7Fh is transmitted. Constant values are
entered in character or hexadecimal notation into the source data.
Constant (Character)
Any character available on the computer keyboard can be entered. One character is counted as one byte.
Constant (Hexadecimal)
Use this option to enter the hexadecimal code of any ASCII character. ASCII control codes NUL (00h) through US (1Fh)
can also be entered using this option.
Example:
The following example shows two methods to enter 3-byte ASCII data “1” (31h), “2” (32h), “3” (33h).
(1) Constant (Character)
Type
TXD
Transmit instruction
RXD
Receive instruction
Port
Port 1
Transmit user communication through RS232C por t 1 (TXD1)
Port 2
Transmit user communication through RS232C por t 2 (TXD2)
S1
Source 1
Enter the data to transmit in this area.
Transmit data can be constant values (character or hexadecimal), data registers, or BCC.
D1
Destination 1
Transmit completion output can be an output or internal relay.
D2
Destination 2
Transmit status register can be data register D0 through D7998.
The next data register stores the byte count of transmitted data.
Transmit Data
Operand
Conversion Type
Transmit Digits
(Bytes)
Repeat
Calculation
Calculation
Start Position
Constant
00h-FFh (7Fh)
No conversion
1
—
—
—
Data Register
D0-D7999
A: Binar y to ASCII
B: BCD to ASCII
–: No conversion
1-4
1-5
1-2
1-99
—
—
BCC
—
A: Binar y to ASCII
–: No conversion
1-2
—
X: XOR
A: ADD
1-15
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]