N4: Own channel - only 840D sl
9.3 Activation and deactivation
Extended Functions
Function Manual, 03/2013, 6FC5397-1BP40-3BA1
567
Program code Comment
:
N190 SPIF1 X700 ; All further strokes are controlled
; with the first interface.
:
9.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 $MC_NIBBLE_PUNCH_OUTMASK
MD26006 $MC_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 $MC_PUNCHNIB_ASSIGN_FASTIN = 'H00030001' → Byte 1
MD26002 $MC_PUNCHNIB_ASSIGN_FASTOUT = 'H00000001'
Remark:
The first and second bits are inverted.
Screen form for high-speed input and output bits:
MD26004 $MC_NIBBLE_PUNCH_OUTMASK[0]
= 1
First interface output bit
→ Bit 1 SPIF1
MD26004 $MC_NIBBLE_PUNCH_OUTMASK[1]
= 2
Second interface output bit
→ Bit 2 SPIF2
MD26006 $MC_NIBBLE_PUNCH_INMASK[0]
= 1
First interface input bit
→ Bit 1 SPIF1
MD26006 $MC_NIBBLE_PUNCH_INMASK[1]
= 2
Second interface input bit
→ Bit 2 SPIF2