5 User Communication
22-70
SmartAXIS Touch 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, BCC, 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), Registering
Constant (Character), Skip, Device, BCC, 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 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
for transmission command data.
3
Change the trigger condition LM200 from 0 to 1 to start command transmission.
The transmission data is as follows.
• When data transmission is successfully completed, the Completed Device LM201 changes to 1.
• When the value of each bit of 0 for Status Device LDR220 is 0, transmission is completed without an error.
Item
Setting
Protocol Name
Sample 2
Receiving Character Time Out
30 (×100 msec)
Item
Setting
Comment
TXD command
Command Type
Transmit
Completed Device
LM201
Status Device
LDR220
Transmission Wait
0 (×100 msec)
Trigger Condition
While ON, LM200
Command
Data Settings dialog box settings
Constant
(Hexadecimal)
'05'
Registering
Constant
(Character)
10: "AB", 20: "CD", Index Device: LDR200
Device
No Conversion, from Upper byte, Number of bytes: 2,
Words: 2
Device: LDR210
BCC
Start Calculation Position: 1, End Calculation Position: 0,
XOR, Binary (HEX)
to ASCII, 2 bytes
Constant
(Hexadecimal)
'0D0A'
AB
10:
CD
20:
Index Device
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
(HEX)
Registering
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 ...