Hardware Reference Manual
Software Setup
24
I8008=$78140;ECT Entry motor #9
I8009=$78148;ECT Entry motor #10
I8010=$78150;ECT Entry motor #11
I8011=$78158;ECT Entry motor #12
I8012=$0;ECT Entry 12
The following run once startup PLC will assign the correct clock values and other hardware settings for
the third servo gate to properly set-up the filtered PWM DAC outputs:
OPEN PLC 25 CLEAR
M7200 = 1001
M7201 = 5
M7202 = 3
M7203 = 1746
M7204 = 15
M7205 = $7FFFC0
M7206 = $FFFFFE
DIS PLC 25
CLOSE
Motor Setup for channels 9-12
The following M-variables will be required to access the necessary registers for the set-up (with default
values) and status of each motor (listed separately for each motor):
// FIRST CHANNEL OF GATE #3 - MOTOR #9
M901->X:$078141,0,24,S ; ENC9 24-bit counter position
M902->Y:$078142,8,16,S ; OUT9A command value; DAC or PWM
M903->X:$078143,0,24,S ; ENC9 captured position
M914->X:$078145,14
; AENA9 output status
M915->X:$078140,19
; USER9 flag input status
M917->X:$078140,11
; ENC9 capture flag
M918->X:$078140,8
; ENC9 count error flag
M919->X:$078140,14
; CHC9 input status
M920->X:$078140,16
; HMFL9 flag input status
M921->X:$078140,17
; PLIM9 flag input status
M922->X:$078140,18
; MLIM9 flag input status
M923->X:$078140,15
; FAULT9 flag input status
M7210->X:$78145,0,4 ;
I7mn0 Servo IC m Channel n Encoder/Timer Decode Control
M7211->X:$78145,13,1 ;
I7mn1 Servo IC m Channel n Position Compare Channel Select
M7212->X:$78145,4,4 ;I7mn2 Servo IC m Channel n Capture Control
M7213->X:$78145,8,4 ;
I7mn3 Servo IC m Channel n Capture Flag Select Control
M7216->X:$78145,20,4 ;I7mn6 Servo IC m Channel n Output Mode Select
// Default values (NOT retained on a "SAVE" command)
M7210 = 3
M7211 = 0
M7212 = 1
M7213 = 0
M7216 = 0
//Motor specific I-variables (retained on a "SAVE" command)
I924 = 1
I925 = $78140
I969 = 1001
I902 = $78142
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com