
Punching and Nibbling (N4)
15.3 Activation and deactivation
Turning, Milling, Nibbling
276
Function Manual, 11/2012, 6FC5397-1CP10-5BA0
SPIF2
Activation of second punch interface
SPIF2
activates the second punch interface, i.e. the stroke is controlled via the second pair of
high-speed I/Os (see machine data MD26004 and MD26006).
Programming example:
:
N170 SPIF1 X100 PON
;
;
;
At the end of the block, a stroke is initiated at
the first high-speed output. The "Stroke active"
signal is monitored at the first input.
N180 X800 SPIF2
;
;
;
The second stroke is initiated at the second high-
speed output. The "Stroke active" signal is
monitored at the second input.
N190 SPIF1 X700
;
;
All further strokes are controlled with the first
interface.
:
15.3.2
Functional expansions
Alternate interface
Machines that alternately use a second punching unit or a comparable medium can be
switched over to a second I/O pair.
The second I/O pair can be defined via the following machine data:
MD26004 NIBBLE_PUNCH_OUTMASK
MD26006 NIBBLE_PUNCH_INMASK
The interface is switched by command
SPIF1
or
SPIF2
. Full punching/nibbling functionality is
available on both interfaces.
Example: Hardware assignment for stroke control
Define the high-speed byte in each case on the CPU as a high-speed punch interface:
MD26000 PUNCHNIB_ASSIGN_FASTIN = 20002H stroke control 2.EB (MCP) inverted
MD26002 PUNCHNIB_ASSIGN_FASTOUT = 2H stroke control 2.AB (MCP)
Remark: The first and second bits are inverted.
Screen form for high-speed input and output bits:
MD26004 NIBBLE_PUNCH_OUTMASK[0]
= 1
First interface output bit
→ Bit 1 SPIF1
MD26004 NIBBLE_PUNCH_OUTMASK[1]
= 2
Second interface output bit
→ Bit 2 SPIF2