FINS commands
3-4-2
Write (0102)
The FINS Write command has these formats:
•
If var_type is 82 or B0:
/i
01
02
..
command_code
var_
type
•
If var_type is C2 or F0:
/i
01
02
..
command_code var_type
•
If var_type is 30:
/i
01
02
30
command_code
var_
type
The parameters can have the following values:
/i
Parameter
command_code
var_type
start_address
total_words
total_dwords
total_bits
bit
The CJ1W-MCH72 responds with these codes:
/i
Condition
All elements valid
var_type invalid
start_address invalid
bit_number invalid
Number of elements invalid
(totals)
..
..
00
start_
fixed
address
..
..
00
start_
fixed
address
..
..
00
start_
bit_
address
num
01 02
•
82 (Table memory in 16-bit integer format)
•
C2 (Table memory in 32-bit IEEE floating-point format)
•
B0 (VR memory in 16-bit integer format)
•
F0 (VR memory in 32-bit IEEE floating-point format)
•
30 (VR memory in bit format)
0 ≤ start_address ≤ memory size − 1 ≤ FFFF
1 ≤ total_words ≤ memory size - start_address + 1
1 ≤ total_dwords ≤ memory size - start_address + 1
1
00 or 01
Response code
(hex)
0000
1101
1103
1103
1104
Section 3-4
..
..
..
total_words
word 1
..
..
.. .. .. ..
total_ dwords dword 1
..
..
..
total_bits
bit
Values
Description
OK
No area type
Address range designation error
Address range designation error
Address out of range
..
.. ..
..
..
..
..
..
..
67