Delta Electronics DVP15MC11T Operation Manual page 275

Table of Contents

Advertisement

DVP15MC11T Operation Manual
side. If the Standard ID range exceeds the specified range of the left-side and right side module, an error will
occur in the instruction execution.
If more than one CR register need be read by the instruction, the parameter DesPtr need be defined as the N
element of an array. The data in the first CR register will be read to the N
second CR register will be read to the N+1
will be all read to the array. Refer to Programming Example 2 for details.
Precaution
!
Maximum 8 extension modules are connectable to the left side and Maximum 8 special modules are
connectable to the right side of DVP15MC11T. Digital modules have no position number. For example, if
DVP04AD-S, DVP16SP11T and DVP04DA-S are connected to the right side of DVP15MC11T one after
another, the StationID value of DVP04AD-S is 0 and the StationID value of DVP04DA-S is 1.
Programming Example
The variable table and program
Variable name
FRM
FRM_ID
FRM _Ex
FRM _CR
FRM _Num
FRM _DP
FRM _Done
FRM _Bsy
FRM _Act
FRM _Err
FRM _ErrID
DVP-04AD is connected to the right side of DVP15MC11T. When FRM _Ex changes from FALSE to
TRUE and FRM _Bsy and FRM _Act change to TRUE simultaneously, FROM instruction starts to execute.
When FRM _Done changes to TRUE, the instruction execution is finished. FRM _DP displays that the
value in CR0 read by the instruction is 136 and thus the version of DVP-04AD is 1.36.
_8
Programming Example
The variable table and program
Variable name
FRM1
FRM1_ID
FRM1_Ex1
FRM1_CR1
FRM1_Num1
FRM1_DP
FRM1_Done
FRM1_Bsy
FRM1_Act
8-204
th
element and so on. By doing so, the data in mutiple CR registers
Data type
FROM
USINT
BOOL
UINT
USINT
INT
BOOL
BOOL
BOOL
BOOL
WORD
FRM
FRO M
FRM_ID
St ationID
FRM_Ex
Exe cute
FRM_CR
CR
FRM_Num
Num
FRM_DP
DesPt r
Data type
FROM
USINT
BOOL
UINT
USINT
Array[1..4] of INT
BOOL
BOOL
BOOL
th
element of the array, the data in the
Current value
0
FALSE
0
1
1
Done
FRM_Done
FRM_Bsy
Busy
FRM_Act
Active
E rror
FRM_Err
ErrorID
FRM_ErrID
Current value
0
FALSE
2
4
th

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents