IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 189

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

Advertisement

Receive command: Command Settings dialog box settings
Item
Type
Trigger Condition
Completed Device Address
Not Clear Completed Device
Address automatically
Status Device Address
Receiving Time Out
Comment
Command
Data Settings dialog box
settings
Operation for receive command
1
Change the trigger condition LM202 from 0 to 1 to be ready for receiving user communication.
2
Data is transmitted from the external device and the transmitted data is received and processed.
The receive data is as follows.
Constant
(Hexadecimal)
Command settings:
STX
Receive data:
(02h)
• The receive data is compared with the character data, and the value of the matching Index No. (10 (Dec)) is stored
in Index Device Address LDR230.
Received data
A
B
(42h)
(41h)
Compare
Order of reception
• The 2 bytes (specified with Skip) of the receive command data 43h and 44h are ignored.
• Since the Reference Device Address LDR 230 of Device Address of the receive command data is 10 (Dec), the
data is stored in the device address LDR250 and LDR251, which is offset by +10.
Value of Device Address
LDR240:
0000h
LDR241:
0000h
LDR250:
3132h
• [STX] ABCD1234 is calculated with BCC of receive command data and compared with 3032h.
- When Calculation Start Position is 1 and Calculation End Position is 0: Calculates the range STX ABCD1234.
Calculation Start Position:
Calculation End Position:
RXD
While ON, Device Address: LM202
LM203
No
LDR260
0 (No Receive Time Out)
RXD command
Constant
'02'
(Hexadecimal)
Registering
Constant
10: "AB", 20: "CD", Index Device Address: LDR230
(Character)
Skip
2 bytes
Conversion Type: No conversion, from Upper byte,
Device Address
Number of bytes: 2, Words: 2
Device Address: LDR240, Reference Device Address: LDR230
Calculation Start Position: 1 Calculation End Position: 0, XOR
BCC
Hexadecimal to ASCII, 2 bytes
Constant
'0D''0A'
(Hexadecimal)
Registering
Constant (Character)
Skip
A
B
C
D
(41h)
(42h)
(43h)
(44h)
Index No.
Number of
10:
Registering
20:
Constants: 2
LDR230=10
(1)
(2)
(3)
(4)
STX
A
B
C
(02h)
(41h)
(42h)
(43h)
(8)
(7)
(6)
(5)
Data used for BCC calculation
WindO/I-NV4 User's Manual
Setting
Device Address
1
2
3
4
(31h)
(32h)
(33h)
(34h)
Data
Value of the Index Device Address
AB
LDR230:
CD
(5)
(6)
(7)
(8)
D
1
2
3
(44h)
(31h)
(32h)
(33h)
(4)
(3)
(2)
(1)
5 User Communication
Constant
(Hexadecimal)
BCC
0
2
CR
LF
(30h)
(32h)
(0Dh)
(0Ah)
10
(DEC)
(9)
4
0
2
CR
(34h)
(30h)
(32h)
(0Dh)
(0)
3
LF
(0Ah)
3-83

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents