2. Object index
Interbus-S
18
2.4.5 CPX_STW
Activation of device control commands and setting/resetting of virtual inputs E17...E32
Control of the COMPAX M/S via the CPX control word is only possible when the relevant bits in P221 are set.
The virtual inputs E17...E32 can be queried in the data memory.
Object Description
Index
0x5FD2
Symbol
CPX_STW
Length
2
Access groups
0
Object code
Simple var.
Password
0
Data type
Octet string
Access rights
Read/write all
PD Map
PAD
Data Description
Data byte [Bit] Assignment Data byte [Bit] Assignment
1 [15...8] E32...E25 2 [7..0] E24...E17
Data byte [Bit] Function without shift Function with shift Enable
1 [7..2] none None P222/Bit 7 ... 0
1 [1]
ObjectReqEnable ObjectReqEnable
see below
1 [0]
FreezePAD FreezePAD
see below
2 [7..6] none None P221/Bit 7 ... 6
2 [5] STOP BREAK P221/Bit 5
2 [4] START None P221/Bit 4
2 [3] QUIT (not when P190=22) Teach real zero P221/Bit 3
2 [2] Hand- Approach real zero (RZ) P221/Bit 2
2 [1] Hand+ Approach machine zero (MZ) P221/Bit 1
2 [0] SHIFT P221/Bit 0
&
The functions
ObjectReqEnable
and
FreezePAD
are only active in CPX_STW when
PD-Length = 4 and P196 Bit 7 = 1 and P196 Bit 5 = 1
!
For a detailed description, please see page 64
The "Quit" command is not accepted for P190=22 (DRIVECOM profile 22) (Error message aknowledgement as outlined
in the status chart on page 77).
By partially reassigning the input functions to STEUERWORT, the function is limited by the multiple function E1. :
Example: If a function with E1 occupies the control word (e.g. Teach real null), then additional E1 functions (such as the
"QUIT" function) are ignored by the inputs.
Therefore:
If you need all the input functions, the function must be completely reassigned, either to the inputs (P221 = 0)
or to the control word (P221 = 63).
Command recognition
The control word is cyclically transmitted from the Interbus Master via the bus.
Note!
When a PLC is the Master, the control word may not be present for too short a time.
The PLC and Interbus-S cycles are asynchronous. If the control word is output for just one PLC cycle (scan), data may be lost.
Rectify the problem with:
!
A control word which is available for a sufficiently long time
or
!
by re-reading the object "CPX_STW". The command has been recognised if the change is in this object.
COMPAX - E/A - Functions over the control word
(Data bits 1[1], 1[0], 2[7], ... 2[2])
COMPAX does not recognise a direct reassignment of the E/A functions by removing a function and setting another function
simultaneously;
Exception:
STOP and BREAK (these are always recognised immediately).
Therefore proceed as follows:
!
Remove the previous functions by sending a "null telegram" (allow status to remain until it has been recognised by the
COMPAX).
!
When the COMPAX is ready, set a new function.