5 User Communication
3-82 WindO/I-NV4 User’s Manual
● Example 2
This section describes an example of user communication protocol settings for creating the following commands and
command operations.
• Transmission command for transmitting data using Constant (Hexadecimal), Registering Constant (Character),
Device Address, BCC, Constant (Hexadecimal) command settings when the trigger condition device address
changes to 1
• Receive command for receiving, processing, and storing data in device addresses, using Constant (Hexadecimal),
Registering Constant (Character), Skip, Device Address, BCC, Constant (Hexadecimal) command settings, for data
transmitted from an external device, when the trigger condition device address is 1
■ Settings in the User Communication tab on the Project Settings dialog box
Transmission command: Command Settings dialog box settings
Operation for transmission command
1 Write a value of 10 (Dec) to LDR200 for Registering Constant (Character) for transmission command data.
AB is selected.
2 Write a value of 3132h to LDR210 and 3334h to LDR211 for Device Address for transmission command data.
3 Change the value of the trigger condition LM200 from 0 to 1 to send the command.
The transmission data is as follows.
• When data transmission is successfully completed, the Completed Device Address LM201 changes to 1.
• When the value of each bit of address number+0 for Status Device Address LDR220 is 0, transmission is completed
without an error.
Item Setting
Protocol Name Sample 2
Receiving Character Time Out 30 (×100 msec)
Item Setting
Type TXD
Trigger Condition Rising-edge, LM200
Completed Device Address LM201
Status Device Address LDR220
Transmission Wait 0 (×100 msec)
Comment TXD command
Command
Data Settings dialog box settings
Constant
(Hexadecimal)
'05'
Registering
Constant
(Character)
10: "AB", 20: "CD", Index Device Address: LDR200
Device Address
No conversion, from Upper byte, Number of bytes: 2,
Words: 2, Device Address: LDR210
BCC
Start Calculation Position: 1, End Calculation Position: 0,
XOR, Hexadecimal to ASCII, 2 bytes
Constant
(Hexadecimal)
'0D''0A'
AB10:
CD20:
Index Device Address
LDR200=10
Data
Index No.
Number of Registering Constants: 2
Transmission data
A
(41h)
B
(42h)
Order of transmission
3
(33h)
4
(34h)
1
(31h)
EQN
(05h)
2
(32h)
CR
(0Dh)
LF
(0Ah)
A
(41h)
B
(42h)
0
(30h)
2
(32h)
BCC
Transmission data:
Constant
(Hexadecimal)
Registering
Constant (Character)
Device Address
Command settings:
Constant
(Hexadecimal)