17: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
17-12
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
Transmit Data Byte Count
The data register next to the operand designated for transmit status stores the byte count of data transmitted by the TXD
instruction. When BCC is included in the transmit data, the byte count of the BCC is also included in the transmit data byte
count.
Example:
Data register D100 is designated as an operand for transmit status.
Programming TXD Instruction Using WindLDR
The following example demonstrates how to program a TXD instruction including a start delimiter, BCC, and end delim-
iter using
WindLDR
.
TXD sample program:
Data register contents:
Transmit data example:
1.
Start to program a TXD instruction. Move the cursor where you want to insert the TXD instruction, and type
TXD
. You
can also insert the TXD instruction by clicking the User Communication icon in the menu bar and clicking where you
want to insert the TXD instruction in the program edit area.
The Transmit instruction dialog box appears.
D100
Transmit status
D101
Transmit data byte count
S1
12
D1
M10
I0
SOTU
TXD
1
D2
D100
Communication por t:
Por t 1
Transmit completion output:
M10
Transmit status register:
D100
Transmit data byte count:
D101
04D2h
D10
162Eh
D11
= 1234
= 5678
STX
(02h)
D10
“1”
(31h)
“2”
(32h)
“3”
(33h)
“4”
(34h)
“5”
(35h)
“8”
(38h)
BCC
(41h)
ETX
(03h)
BCC
“6”
(36h)
“7”
(37h)
BCC calculation range
Constant
D11
Constant
(H)
BCC
(36h)
(L)
(hex)
(hex)
Содержание FC4A-C10R2
Страница 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Страница 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Страница 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Страница 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Страница 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Страница 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Страница 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Страница 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Страница 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Страница 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Страница 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Страница 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Страница 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...