11.03
4 Data Descriptions
4.4 System variable
© Siemens AG 2003 All Rights Reserved
SINUMERIK 840D/SIMODRIVE 611 digital SINUMERIK Safety Integrated (FBSI) - Edition 11.03
4-269
The external status signals can be addressed double-word-serial from the
NCK-SPL via these system variables:
$A_OUTSED[1] corresponds to $A_OUTSE[1...32]
$A_OUTSED[2] corresponds to $A_OUTSE[33...64]
These system variables can be read and written by the user program.
Up to 64 status bits of the SPL can be flagged via these system variables. The
markers are read and written directly in the NCK-SPL.
Programming example
:
N1030 IDS = 03 DO $A_MARKERSI[2] = $A_OUTSI[1] AND
$A_INSE[2]
N1040 IDS = 04 DO $A_OUTSE[1] = $A_MARKERSI[2]
The SPL status bits can be addressed word-serial via these system variables.
$A_MARKERSID[1] corresponds to $A_MARKERSI[1...32]
$A_MARKERSID[2] corresponds to $A_MARKERSI[33...64]
Up to sixteen timer stages can be programmed using these system variables.
Programming example
:
; Set marker once after two seconds, reset
; timer value and stop timer.
N1050 IDS = 05 WHENEVER $A_TIMERSI[1] > 2.0 DO
$A_TIMERSI[1] = 0.0 $A_TIMERSI[1] = -1.0
$A_MARKERSI[2] = 1
This system variable can be used in the NCK-SPL to evaluate whether, in the
crosswise data comparison between NCK and PLC, an error was detected in
the two-channel control/processing of the control and status signals. This gives
the user the opportunity to respond to this error with special synchronous
actions.
Programming example
:
; For crosswise data comparison error, set the ext. output
N1060 IDS = 06 WHENEVER $A_STATSID <> 0 DO $A_OUTSE[1] = 1
The user program can only read this system variable.
The system variable can be used to increase the time up to 10 s for the signal
change monitoring in the crosswise data comparison between NCK and PLC.
This extension is used, among other things, to carry-out the test stop function
that must be separately perform for the NCK and drive monitoring channel.
Signal differences between the NCK and PLC system variables up to a period
of 10s are tolerated without Alarm 27090 being output.
This system variable can be read and written by the user program.
System variables
$A_OUTSED[1,2]
System variables
$A_MARKERSI[1...64]
System variables
$A_MARKERSID[1,2]
System variables
$A_TIMERSI[1...16]
System variable
$A_STATSID
System variable
$A_CMDSI[1]