IDEC SmartAXIS FT9Z-1A01 User Manual page 245

Table of Contents

Advertisement

Programming TXD Instruction Using WindLDR
The following example demonstrates how to program a TXD instruction including a start delimiter, BCC, and end delimiter using
WindLDR.
TXD sample program:
TXD
SOTU
2
I0
Data register contents:
D10
04D2h
162Eh
D11
Transmit data example:
STX
"1"
"2"
(02h)
(31h)
(32h)
Constant
(hex)
Start to program a TXD instruction. Move the cursor where you want to insert the TXD instruction, and type TXD. You can also
1.
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.
S1
D1
12
M10
D100
= 1234
= 5678
BCC calculation range
"3"
"4"
"5"
"6"
(33h)
(34h)
(35h)
(36h)
D10
D11
S
A XI S P
M AR T
10 : U
Communication port:
D2
Transmit completion output:
Transmit status register:
Transmit data byte count:
BCC
BCC
"7"
"8"
ETX
(H)
(L)
(37h)
(38h)
(03h)
(41h)
(36h)
BCC
Constant
(hex)
/ L
U
'
M
FT9Y-B 1378
R O
I TE
SER
S
ANUAL
C
SER
OM M UN I CATI ON
Port 2
M10
D100
D101
I
N STR UCTI ON S
10-5

Advertisement

Table of Contents
loading

Table of Contents