PMAC2A-PC/104
PMAC2A-PC/104 Software Setup
25
M8->Y:$C080,8
; Digital Input MI0
M9->Y:$C080,9
; Digital Input MI1
M10->Y:$C080,10
; Digital Input MI2
M11->Y:$C080,11
; Digital Input MI3
M12->Y:$C080,12
; Digital Input MI4
M13->Y:$C080,13
; Digital Input MI5
M14->Y:$C080,14
; Digital Input MI6
M15->Y:$C080,15
; Digital Input MI7
M32->X:$C080,0,8
; Direction Control (1=output, 0 = input)
M34->X:$C080,8,8
; Direction Control (1=output, 0 = input)
M40->X:$C084,0,24
; Inversion control (0 = 0V, 1 = 5V)
M42->Y:$C084,0,24
; J7 port data type control (1 = I/O)
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=$FF00
;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.
ACC-2P with jumper E5 in position 2-3
M0->Y:$C0C0,0
; Digital Output M00
M1->Y:$C0C0,1
; Digital Output M01
M2->Y:$C0C0,2
; Digital Output M02
M3->Y:$C0C0,3
; Digital Output M03
M4->Y:$C0C0,4
; Digital Output M04
M5->Y:$C0C0,5
; Digital Output M05
M6->Y:$C0C0,6
; Digital Output M06
M7->Y:$C0C0,7
; Digital Output M07
M8->Y:$C0C0,8
; Digital Input MI0
M9->Y:$C0C0,9
; Digital Input MI1
M10->Y:$C0C0,10
; Digital Input MI2
M11->Y:$C0C0,11
; Digital Input MI3
M12->Y:$C0C0,12
; Digital Input MI4
M13->Y:$C0C0,13
; Digital Input MI5
M14->Y:$C0C0,14
; Digital Input MI6
M15->Y:$C0C0,15
; Digital Input MI7
M32->X:$C0C0,0,8
; Direction Control (1=output, 0 = input)
M34->X:$C0C0,8,8
; Direction Control (1=output, 0 = input)
M40->X:$C0C4,0,24
; Inversion control (0 = 0V, 1 = 5V)
M42->Y:$C0C4,0,24
; JI/O port data type control (1 = I/O)
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 ...