4 example of user communication settings, Example 1, Example of user communication settings -69 – IDEC High Performance Series User Manual
Page 171: Communic ation
WindO/I-NV2 User’s Manual
3-69
5 User Communication
3
Communic
ation
5.4 Example of User Communication Settings
This section describes examples of user communication settings and command operations.
●
Example 1
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), Constant (Character), Device,
Constant (Hexadecimal) command settings when the trigger condition device changes to 1
• Receive command for receiving, processing, and storing data in devices, using Constant (Hexadecimal), Constant
(Character), Device, Constant (Hexadecimal) command settings, for data transmitted from an external device,
when the trigger condition device is 1
■
User Communication Settings dialog box settings
■
Transmission command: Command Settings dialog box settings
Operation for transmission command
1
Write a value of 100 (DEC) to LDR100 of transmission command data Device.
2
Change the trigger condition LM100 from 0 to 1 to start command transmission.
After the transmission wait duration (five seconds), the transmission data is sent. The transmission data is as follows.
• When data transmission is successfully completed, the Completed Device LM101 changes to 1.
• When the value of each bit of address+0 for Status Device LDR110 is 0, transmission is completed without an error.
Item
Setting
Protocol Name
Sample 1
Receiving Character Time Out
30 (×100 msec)
Item
Setting
Comment
TXD command
Command Type
TXD
Completed Device
LM101
Status Device
LDR110
Transmission Wait
50 (×100 msec)
Trigger Condition
While ON, Device: LM100
Command
Data Settings dialog box settings
Constant
(Hexadecimal)
'05'
Constant
(Character)
"D"
Device
Conversion Type: Binary (DEC) to ASCII,
Number of bytes: 4, Words: 1
Device: LDR100
Constant
(Hexadecimal)
'0D'
D
(44h)
0
(30h)
0
(30h)
0
(30h)
EQN
(05h)
1
(31h)
CR
(0Dh)
Transmission data:
Constant
(HEX)
Constant
(Character)
Device
Command settings:
Constant
(HEX)