5.2 Indirect Access to JX3 Module Registers
JetWeb
Index for Indirect Register Access
Module Register
7
Description
At indirect register access to JX3 modules, the index contains
the module register number. It functions as a pointer.
Access
read and write access
Value Range
0 ... 9999
Value After Reset
9
Comment
After switching on, the index points to the module register
"operating system version".
Data for Indirect Register Access
Module Registers
8
Description
This module register is for reading, respectively writing, the
value of the selected module register.
The JX3-BN-CAN module copies the value of the actual
module register to this register.
Access
Read and write access
Value Range
32 bits
Value After Reset
Operating System Release
Example: Directly Checking Communication with the JX3 Modules
In a JX3-BN-CAN module, communication with the connected JX3 modules is to be
checked. For this, bit 15 in register 0
the status of the JX3-BN-CAN
must be queried.
VAR
nm_State : INT
at
%vl
3310
;
//
Status register JX3-BN-CAN
END_VAR
;
CONST
c_ComActive =
15
;
// Bit
number
END_CONST
;
TASK 0
WHEN
BIT_SET (nm_State, c_ComActive)
// Communication
active
CONTINUE
;
// ...
END_TASK
;
26
Jetter AG
Содержание JX3-BN-CAN
Страница 37: ...JX3 BN CAN Appendix Appendix Jetter AG 37...