Detailed description
2.7 Program operation mode
Basic logic functions: Mode group, channel, program operation, reset response (K1)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
135
ASUB activation
ASUBs can also be activated by using synchronized actions to set outputs that enable the
input of the interrupt indirectly by short-circuit.
Example:
1. Define number of active digital I/Os
FASTIO_DIG_NUM_INPUTS=3
FASTIO_DIG_NUM_OUTPUTS=3
2. Generate a short-circuit with the following MDs
FASTIO_DIG_SHORT_CIRCUIT[0]='H0102B102'
FASTIO_DIG_SHORT_CIRCUIT[1]='H0202B202'
3. Hardware assignment of external NC input byte for NC program interrupt
SETINT_ASSIGN_FASTIN=2 ; better to use 1 byte more than needed
4. SETINT (1) PRIO=1 SYNCASUP; Define input as ASUB trigger
5. IDS=1 EVERY $$AC_PATHN>=0.5 DO $A_OUT_[9]=1
References:/FBSY/, Synchronized Actions
ASUB with or without REPOS
ASUB sequences may be generated for which there is no unambiguous return to an
interruption point in the block processing sequence. System variable: $P_REPINF can be
used to scan the ASUB to determine whether a REPOS is possible.
System variable: $P_REPINF
Value Significance
0 Repositioning with REPOS not possible because:
- not called in ASUB
- ASUB executed from RESET state
- ASUP executed from JOG
1 Repositioning with REPOS possible in ASUB
Acknowledgment signal DB21, ... DBX318.0
Control systems can also be stopped/started from AUTOMATIC mode automatically prior to
the end of the ASUB. In the stopped state, the VDI acknowledgement signal DB21, ...
DBX318.0 (ASUP is stopped) are set to the PLC interface.