5 User Communication
22-68
SmartAXIS Touch User's Manual
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 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)
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...