PMAC2A-PC/104
PMAC2A-PC/104 Software Setup
26
In order to properly setup the digital outputs an initialization PLC must be written scanning through once
on power-up/reset, then disabling itself:
OPEN PLC1 CLEAR
M32=$FF
;BITS 0-8 are assigned as output
M34=$0
;BITS 9-16 are assigned as input
M40=$FFFF
;Define inputs and outputs voltages
M42=$FFFF
;All lines are I/O type
DIS
PLC1
;Disable PLC1 (scanning through once on power-up/reset)
CLOSE
Note
After loading this program you must set I5=2 or 3 and ENABLE PLC 1
Thumbwheel Port Digital Inputs and Outputs
The inputs and outputs on the thumbwheel multiplexer port of either the ACC-1P or ACC-2P boards may
be used as discrete, non-multiplexed I/O. In this case these I/O lines can be accessed through M-variables
that are defined according to the setup of the address selection jumpers. Jumper E6 on the ACC-1P or E5
on the ACC-2P determine which set of the following M-variables are used:
ACC-1P with Jumper E6 in Position 1-2
M40->Y:$C082,8,1
; SEL0 Output
M41->Y:$C082,9,1
; SEL1 Output
M42->Y:$
C082
,10,1
; SEL2 Output
M43->Y:$
C082
,11,1
; SEL3 Output
M44->Y:$
C082
,12,1
; SEL4 Output
M45->Y:$C082,13,1
; SEL5 Output
M46->Y:$C082,14,1
; SEL6 Output
M47->Y:$C082,15,1
; SEL7 Output
M48->Y:$C082,8,8,U
; SEL0-7 Outputs treated as a byte
M50->Y:$C082,0,1
; DAT0 Input
M51->Y:$C082,1,1
; DAT1 Input
M52->Y:$C082,2,1
; DAT2 Input
M53->Y:$C082,3,1
; DAT3 Input
M54->Y:$C082,4,1
; DAT4 Input
M55->Y:$C082,5,1
; DAT5 Input
M56->Y:$C082,6,1
; DAT6 Input
M57->Y:$C082,7,1
; DAT7 Input
M58->Y:$C082,0,8,U
; DAT0-7 Inputs treated as a byte
ACC-2P with Jumper E5 in Position 2-3
M40->Y:$C0C2,8,1
; SEL0 I/O Line
M41->Y:$C0C2,9,1
; SEL1 I/O Line
M42->Y:$
C0C2
,10,1
; SEL2 I/O Line
M43->Y:$
C0C2
,11,1
; SEL3 I/O Line
M44->Y:$
C0C2
,12,1
; SEL4 I/O Line
M45->Y:$C0C2,13,1
; SEL5 I/O Line
Summary of Contents for PMAC2A-PC/104
Page 2: ......
Page 14: ...PMAC2A PC 104 Base Board Hardware Setup 8 ...
Page 34: ...PMAC2A PC 104 PMAC2A PC 104 Software Setup 28 ...
Page 41: ...PMAC2A PC 104 ACC 1P Hardware Reference Summary 35 ...
Page 51: ...PMAC2A PC 104 Base Board E Point Jumper Descriptions 45 ...
Page 55: ...PMAC2A PC 104 Acc 1P E Point Jumper Descriptions 49 ...