Hardware Reference Manual
Software Setup
31
JTHW port first ACC-1P, Jumper E6 on Position 1-2
M4080->Y:$78502,8,1 ; SEL0 Output
M4081->Y:$78502,9,1 ; SEL1 Output
M4082->Y:$78502,10,1 ; SEL2 Output
M4083->Y:$78502,11,1 ; SEL3 Output
M4084->Y:$78502,12,1 ; SEL4 Output
M4085->Y:$78502,13,1 ; SEL5 Output
M4086->Y:$78502,14,1 ; SEL6 Output
M4087->Y:$78502,15,1 ; SEL7 Output
M4088->Y:$78502,8,8,U ; SEL0-7 Outputs treated as a byte
M4090->Y:$78502,0,1 ; DAT0 Input
M4091->Y:$78502,1,1 ; DAT1 Input
M4092->Y:$78502,2,1 ; DAT2 Input
M4093->Y:$78502,3,1 ; DAT3 Input
M4094->Y:$78502,4,1 ; DAT4 Input
M4095->Y:$78502,5,1 ; DAT5 Input
M4096->Y:$78502,6,1 ; DAT6 Input
M4097->Y:$78502,7,1 ; DAT7 Input
M4098->Y:$78502,0,8,U ; DAT0-7 Inputs treated as a byte
M4099->X:$078502,0,8 ; Direction control for DAT0 to DAT7
M4099->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 13 CLEAR
M4089=0
M4099=$FF
DISPLC10
CLOSE
Note:
After loading this program, set I5=2 or 3 and ENABLE PLC 13.
JOPTO port second ACC-1P, Jumper E6 on Position 2-3
M4100->Y:$78540,0
; Digital Output M00
M4101->Y:$78540,1
; Digital Output M01
M4102->Y:$78540,2
; Digital Output M02
M4103->Y:$78540,3
; Digital Output M03
M4104->Y:$78540,4
; Digital Output M04
M4105->Y:$78540,5
; Digital Output M05
M4106->Y:$78540,6
; Digital Output M06
M4107->Y:$78540,7
; Digital Output M07
M4116->Y:$78540,0,8,u ;all outputs as an 8bit word
M4108->Y:$78540,8
; Digital Input MI0
M4109->Y:$78540,9
; Digital Input MI1
M4110->Y:$78540,10 ; Digital Input MI2
M4111->Y:$78540,11 ; Digital Input MI3
M4112->Y:$78540,12 ; Digital Input MI4
M4113->Y:$78540,13 ; Digital Input MI5
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com