Mitsubishi MELFA 4D-2CG5100-PKG-E Instruction Manual page 102

Network vision sensor
Table of Contents

Advertisement

9 Detailed Explanation of Functions
About details of a set value, see the " Table 9-2 Preservation specification to state variable by <Type>
specified value".
Table9-2 Preservation specification to state variable by <Type> specified value
Specified value
State of cell
Correspondence
state ariable(*1)
Data type
(*1)"*" sign of the correspondence state variable specifies < Vision Sensor Number >.
The Position data P_NVS*() is converted into the numerical value for a positional variable and it
preserves it in X, Y, and Z coordinates sequentially.
When the character which cannot be converted is included, it preserves it as "0".
Moreover, the data preserved in the row since the fourth row in cell which specifies it for < Start cell >
and < End cell > must not be acquired.
The Numeric type data M_NVS*() is converted into the numerical value for a numeric variable and it
preserves it.
When the character which cannot be converted is included, it preserves it as "0".
M_NVS*() is two dimension array, and all the data specified for < Start cell > and < End cell > can be
preserved.
It explains the content by "Explanation".
The Text type dataC_NVS*() is preserved as it is for the character type variable.
It replies from the Vision Sensor the function and kanji code etc. of the vision program as "#"
character.
Moreover, it replies by the NULL character for a blank cell.
All these situations are preserved in C_NVS*() as NULL character.
C_NVS*() is two dimension array, and all the data specified for < Start cell > and < End cell > can be
preserved.
The example of storing information up to 255 characters or less in one cell by switching off the
comma district is shown as follows.
When "4" is specified in the <Type> in this example, "J91" is specified for the <Start cell>, and "J91" is
specified for the <End cell>, the following result is obtained.
Variable
P_NVS1(1)
P_NVS1(2)
P_NVS1(3)
P_NVS1(4)
・・・・・・
<Time out> (If omitted, 10)
Specifies the time-out time (in seconds).
Specification range: Integer 1-32767
9-91 Vision Sensor Dedicated Commands and Status Variables
0
1
1Data/Cell
P_NVS*()
M_NVS*()
C_NVS*()
Position
Single-pre
Text type
type
cision real
number
type
Data(X,Y,Z,A,B,C,L1,L2)
(+336.43,-71.14,+0.00,+0.00,+0.00,+122.27,+0.00+0.00)
(+344.10,+151.54,+0.00,+0.00,+0.00,-5.78,+0.00+0.00)
(+224.58,+274.84,+0.00,+0.00,+0.00,+31.24,+0.00+0.00)
(+0.00,+0.00,+0.00,+0.00,+0.00,+0.00,+0.00+0.00)
・・・・・・
2
3
Two or more of comma(,) district switching off data/
M_NVS*()
P_NVS*()
C_NVS*()
Single-pre
Position
cision real
type
number
type,
Text type
4
5
Cell
M_NVS*()
C_NVS*()
Single-pre
Text type
cision real
number
type
6
7
M_NVS*()
C_NVS*()
Single-preci
sion
real
number
type,
Text type

Advertisement

Table of Contents
loading

Table of Contents