IDEC SmartAXIS FT9Z-1A01 User Manual page 248

Table of Contents

Advertisement

10: U
C
SER
OM M UN I CATI ON
Programming RXD Instruction Using WindLDR
The following example demonstrates how to program an RXD instruction including a start delimiter, skip, constant for verification,
BCC, and end delimiter using WindLDR. Converted data is stored to data registers D10 and D11. Internal relay M100 is used as
destination D1 for the receive completion output. Data register D1000 is used as destination D2 for the receive status, and data
register D1001 is used to store the receive data byte count.
Receive data example:
St. #
St. #
STX
(H)
(L)
(02h)
(00h)
(10h)
Start Delimiter
RXD sample program:
RXD
SOTU
2
I0
Start to program an RXD instruction. Move the cursor where you want to insert the RXD instruction, and type RXD. You can
1.
also insert the RXD instruction by clicking the User Communication icon in the menu bar and clicking where you want to insert
the RXD instruction in the program edit area, then the Transmit dialog box appears. Click RXD to change the dialog box to the
Receive dialog box.
The Receive instruction dialog box appears.
Check that RXD is selected in the Type box and select Port 2 in the Port box. Then, click Insert.
2.
The Data Type Selection dialog box appears. You will program source device S1 using this dialog box.
Click Constant (Hexadecimal) in the Type box and click OK. Next, in the Constant (Hexadecimal) dialog box, type 020010
3.
to program the start delimiter STX (02h), Station No. H (00h), and Station No. L (10h). When finished, click OK.
10-8
I
N STR UCTI ON S
BCC calculation range
"0"
"0"
","
"1"
"2"
(30h)
(30h)
(2Ch)
(31h)
(32h)
Skip
Constant
Stored to D10 and D11
for
Verification
S1
D1
D2
18
M100
D1000
S
A XI S P
M AR T
R O
"3"
"4"
"5"
"CR"
(33h)
(34h)
(35h)
(0Dh)
Communication port:
Receive completion output:
Receive status register:
Receive data byte count:
/ L
U
'
M
FT9Y-B 1378
I TE
SER
S
ANUAL
BCC
BCC
ETX
(H)
(L)
(03h)
(41h)
(41h)
BCC
End
Delimiter
Port 2
M100
D1000
D1001

Advertisement

Table of Contents
loading

Table of Contents