IDEC FC6A-C16K1CE Communications Manual page 105

Fc6a series microsmart all-in-one type
Hide thumbs Also See for FC6A-C16K1CE:
Table of Contents

Advertisement

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
1
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 RXD (Receive) dialog box appears.
Check that RXD is selected in the Type box and select Port 1 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.
3.
Click Constant (Hexadecimal) in the Type box and click OK. Next, in the Constant (Hexadecimal) dialog box, type
020010 to program the start delimiter STX (02h), Station No. H (00h), and Station No. L (10h). When finished, click OK.
BCC calculation range
"0"
"0"
","
"1"
(30h)
(30h)
(2Ch)
(31h)
Skip
Constant
for
Verification
S1
D1
18
M100
D1000
FC6A S
M
S
A
ERIES
ICRO
MART
LL
"2"
"3"
"4"
"5"
"CR"
(32h)
(33h)
(34h)
(35h)
(0Dh)
Stored to D10 and D11
Communication port:
D2
Receive completion output:
Receive status register:
Receive data byte count:
-
-O
T
C
IN
NE
YPE
OMMUNICATION
5: U
C
SER
OMMUNICATION
BCC
BCC
ETX
(H)
(L)
(03h)
(41h)
(41h)
BCC
End
Delimiter
Port 1
M100
D1000
D1001
M
FC9Y-B1730
ANUAL
I
NSTRUCTIONS
5-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents