Turbo PMAC Clipper Hardware Reference Manual
Connections and Software Setup
42
General Purpose I/Os (J6) Suggested M-Variables
The lines on the JOPT general-purpose I/O connector will be mapped into PMAC's address space in
register Y:$78400. Typically, these I/O lines are accessed individually with M-variables. Following is a
suggested set of M-variable definitions to use these data lines.
M0->Y:$78400,0 ; Digital Output M01
M1->Y:$78400,1 ; Digital Output M02
M2->Y:$78400,2 ; Digital Output M03
M3->Y:$78400,3 ; Digital Output M04
M4->Y:$78400,4 ; Digital Output M05
M5->Y:$78400,5 ; Digital Output M06
M6->Y:$78400,6 ; Digital Output M07
M7->Y:$78400,7 ; Digital Output M08
M8->Y:$78400,8 ; Digital Input MI1
M9->Y:$78400,9 ; Digital Input MI2
M10->Y:$78400,10 ; Digital Input MI3
M11->Y:$78400,11 ; Digital Input MI4
M12->Y:$78400,12 ; Digital Input MI5
M13->Y:$78400,13 ; Digital Input MI6
M14->Y:$78400,14 ; Digital Input MI7
M15->Y:$78400,15 ; Digital Input MI8
M32->X:$78400,0,8 ; Direction Control bits 0-7 (1=output, 0 = input)
M34->X:$78400,8,8 ; Direction Control bits 8-15 (1=output, 0 = input)
M40->X:$78404,0,24 ; Inversion control (0 = 0V, 1 = 5V)
M42->Y:$78404,0,24 ; J9 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:
//===================================
PLC SCRIPT CODE
=====================================//
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
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, set I5=2 or 3 and ENABLE PLC1.
Summary of Contents for Turbo PMAC Clipper
Page 5: ......
Page 11: ...Turbo PMAC Clipper Connections and Software Setup 11 SPECIFICATIONS Part Number ...
Page 78: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 78 APPENDIX B SCHEMATICS ...
Page 79: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 79 ...
Page 80: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 80 ...
Page 81: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 81 ...
Page 82: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 82 ...
Page 83: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 83 ...
Page 84: ...Turbo PMAC Clipper Hardware Reference Manual Appendix B 84 ...