01/2007
11.7 Digital and analog I/O devices
11-391
© Siemens AG 2007 All Rights Reserved
SINUMERIK 840Di sl Manual (HBIsl) – 01/2007 Edition
Note
S The first digital input/output bytes defined via machine data:
S MD10350: FASTIO_DIG_NUM_INPUTS
S MD10360: FASTIO_DIG_NUM_OUTPUTS
always refers to the 4 digital input/outputs on the MCI board extension
module. Explicit assignment in machine data is not possible. Therefore, the
machine data required to assign the digital and analog input/outputs refer
exclusively to the signal modules connected via the PROFIBUS DP.
S The I/O address to be entered in the machine data hexadecimally is the
decimal I/O address of the respective signal module slot allocated by ”HW
Config” or set manually.
S If a slot comprises several I/O bytes or addresses, the NCK occupies the
entire slot when an I/O byte is assigned. This means I/O bits not used for
the NCK cannot be written by the PLC user program .
11.7.3 System variable $A_...[n]
The digital and analog input/outputs are available in the NCK (part program,
ASUP, synchronized action, etc.) in the form of system variables.
Analog inputs/outputs
S $A_INA[n] (”Read analog input n, where n=1...8”)
S $A_OUTA[n] (”Write analog output n, where n=1...8”)
Digital input/outputs
S $A_IN[n] (”Read digital input (Bit) n, where n=1...4 and 9...40”)
S $A_OUT[n] (”Write digital output n, where n=1...4 and 9...40”)
Hardware assign machine data System variables
Analog inputs/outputs
MD10362: HW_ASSIGN_ANA_FASTIN[0–7] $A_INA[1–8]
MD10364: HW_ASSIGN_ANA_FASTOUT[0–7] $A_OUTA[1–8]
Digital inputs/outputs
MCI board extension: Digital inputs 1–4 $A_IN[1–4]
MD10366: HW_ASSIGN_DIG_FASTIN[0–3] $A_IN[9–40]
MCI board extension: Digital outputs 1–4 $A_OUT[1–4]
MD10368: HW_ASSIGN_DIG_FASTOUT[0–3] $A_OUT[9–40]
Note
The digital input/outputs are organized as follows:
S Hardware assign machine data: Byte by byte
S System variables: Bit by bit
11 NCK Commissionin
with HMI Advanced