IDEC FT1A Series User Manual page 244

Hide thumbs Also See for FT1A Series:
Table of Contents

Advertisement

10: U
C
SER
OMMUNICATION
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
1.
Start to program an RXD instruction. Move the cursor where you want to insert the RXD instruction, and type RXD. You can
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
NSTRUCTIONS
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
AXIS P
MART
RO
"3"
"4"
"5"
"CR"
(33h)
(34h)
(35h)
(0Dh)
Communication port:
Receive completion output:
Receive status register:
Receive data byte count:
/L
U
'
M
FT9Y-B1378
ITE
SER
S
ANUAL
BCC
BCC
ETX
(H)
(L)
(03h)
(41h)
(41h)
BCC
End
Delimiter
Port 2
M100
D1000
D1001

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents