Chapter 7 Second Development Platform VP3000
386
API Instruction code Operand Function
322 CATCH P S
1
, S
2
, S
3
, n Word read of internal control
Type
Operand
Bit devices Word devices
16-bit instruction (9 steps)
CATCH
Continuous
execution
type
CATCHP
Pulse
execution
type
32-bit instruction
- - - -
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
1
S
2
S
3
D
Caution for using operand: stored in D and D+1
Description
S
1
: channel selection
S
2
: the address to read
S
3
: the address to read (SUB)
D: destination for storing (D and D+1)
The definition of channels:
0: Reserved
1: RS485
2: Reserved
3: COM Card
4: CANopen
The definition of S
2
:
20XXH: refer to the communication related chapter for details
26XXH: refer to the communication related chapter for details
60XXH: refer to the communication related chapter for details
The definition of S
3
:
Only supported by 60XXH, refer to the communication related chapter for details
Example
See the example below:
If M0 = ON, then CATCH instruction read RS485 communication address 2000H (H0 is invalid),
and store the result in [D1, D0].