Example Of User Communication Settings - IDEC MICRO/I HG4G-CJT22 F-B Series User Manual

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

5 User Communication

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 Address,
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),
Constant (Character), Device Address, 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
Item
Protocol Name
Receiving Character Time Out
Transmission command: Command Settings dialog box settings
Item
Type
Trigger Condition
Completed Device Address
Status Device Address
Transmission Wait
Comment
Command
Data Settings dialog box settings
Operation for transmission command
1
Write a value of 100 (Dec) to LDR100 of transmission command data Device Address.
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.
Constant
(Hexadecimal)
Command settings:
EQN
Transmission data:
(05h)
• When data transmission is successfully completed, the Completed Device Address LM101 changes to 1.
• When the value of each bit of address number+0 for Status Device Address LDR110 is 0, transmission is completed
without an error.
3-80
Sample 1
30 (×100 msec)
TXD
Rising-edge, Device Address: LM100
LM101
LDR110
50 (×100 msec)
TXD command
Constant
(Hexadecimal)
Constant
(Character)
Device Address
Constant
(Hexadecimal)
Constant
(Character)
Device Address
D
0
1
0
(44h)
(30h)
(31h)
(30h)
WindO/I-NV4 User's Manual
Setting
Setting
'05'
"D"
Conversion Type: Decimal to ASCII,
Number of bytes: 4, Words: 1
Device Address: LDR100
'0D'
Constant
(Hexadecimal)
0
CR
(30h)
(0Dh)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents