Hardware Reference Manual
Software Setup
32
M4114->Y:$78540,14 ; Digital Input MI6
M4115->Y:$78540,15 ; Digital Input MI7
M4117->Y:$78540,8,8,u ; all inputs as an 8bit word
M4118->X:$78540,0,8 ; Direction Control bits 0-7 (1=output, 0 = input)
M4119->X:$78540,8,8 ; Direction Control bits 8-15 (1=output, 0 = input)
M4120->X:$78544,0,24 ; Inversion control (0 = 0V, 1 = 5V)
M4121->Y:$78544,0,24
; J9 port data type control (1 = I/O)
In order to properly setup the JOPTO digital I/O, an initialization PLC must be written scanning through
once on power-up/reset, and then disabling itself:
OPEN PLC14 CLEAR
M4118=$FF
;BITS 0-8 are assigned as output
M4119=$0
;BITS 9-16 are assigned as input
M4120=$FF00
;Define inputs and outputs
M4121=$FFFF
;All lines are I/O type
DIS PLC3
;Disable PLC1 (scanning through once on power-
up/reset)
CLOSE
Note:
After loading this program, set I5=2 or 3 and ENABLE PLC 1.
JTHW port second ACC-1P, Jumper E6 on Position 2-3
M4130->Y:$78542,8,1 ; SEL0 Output
M4131->Y:$78542,9,1 ; SEL1 Output
M4132->Y:$78542,10,1 ; SEL2 Output
M4133->Y:$78542,11,1 ; SEL3 Output
M4134->Y:$78542,12,1 ; SEL4 Output
M4135->Y:$78542,13,1 ; SEL5 Output
M4136->Y:$78542,14,1 ; SEL6 Output
M4137->Y:$78542,15,1 ; SEL7 Output
M4138->Y:$78542,8,8,U ; SEL0-7 Outputs treated as a byte
M4140->Y:$78542,0,1 ; DAT0 Input
M4141->Y:$78542,1,1 ; DAT1 Input
M4142->Y:$78542,2,1 ; DAT2 Input
M4143->Y:$78542,3,1 ; DAT3 Input
M4144->Y:$78542,4,1 ; DAT4 Input
M4145->Y:$78542,5,1 ; DAT5 Input
M4146->Y:$78542,6,1 ; DAT6 Input
M4147->Y:$78542,7,1 ; DAT7 Input
M4148->Y:$78542,0,8,U ; DAT0-7 Inputs treated as a byte
M4139->X:$078502,0,8 ; Direction control for DAT0 to DAT7
M4149->X:$078502,8,8 ; Direction control for SEL0 to SEL7
In order to properly setup the JTHW digital I/O an initialization PLC must be written scanning through
once on power-up/reset, and then disabling itself:
OPEN PLC 15 CLEAR
M4139=0
M4149=$FF
DISPLC10
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com