Siemens SINUMERIK Commissioning Manual page 124

Sinumerik 840di sl/840d sl/840dbase software and hmi advanced
Hide thumbs Also See for SINUMERIK:
Table of Contents

Advertisement

Programming PLC Functions
4.3 Channel/spindle selection via the PLC
4.3
Channel/spindle selection via the PLC
Channel selection
Channel selection or display is initiated as follows (display in "Channel name" field):
DB 19, DBB 32 = 01000001 [binary] channel selection
DB 19, DBB 33 = <channel number>
FF for next channel
Spindle selection
Spindle selection is initiated as follows (display in spindle window):
DB 19, DBB 32 = 01000010 [binary] spindle selection
DB 19, DBB 33 = <spindle number> spindle number to be displayed
Error codes
The following error codes, which provide information to the HMI about errors during the
function request of the PLC, are stored in DB 19.DBB 36:
Value
0
1
2
3
10
Acknowledgement mechanism between PLC ↔ HMI
Via DB19.DBB32 bits 6, 7, there is an acknowledgment mechanism that ensures that the
HMI and the PLC coordinate the channel selection:
The PLC sets Bit 6 to 1 = "Function request". The function request can only be set by the
PLC if bits 6 and 7 have the value zero.
After displaying the text in the header the HMI writes zero again in bit 6 and the interface is
enabled for the PLC for the next action.
Note
If several HMI units are assigned to one NCU/PLC unit (M:N), the PLC must first determine
from the control interface which of the HMI interfaces is presently active. Channel/spindle
displays can only be requested by the PLC for the active HMI unit. The interface for selecting
channel/spindle displays for the 2nd HMI unit is located in DB19, DBB82-86. The use is the
same as described for DBB32-36.
118
Significance
No error
No function number (DBB32 bit 0-5)
Invalid parameter
Error when writing to HMI-internal variable
Channel not present (DBB33)
Commissioning Manual, 03/2009, 6FC5397-0DP10-3BA0
HMI Advanced (IM4)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents