Hardware Reference Manual
Software Setup
28
// FOURTH CHANNEL OF GATE #3 - MOTOR #12
M1201->X:$078159,0,24,S ; ENC12 24-bit counter position
M1202->Y:$07815A,8,16,S ; OUT12A command value; DAC or PWM
M1203->X:$07815B,0,24,S ; ENC12 captured position
M1214->X:$07815D,14 ; AENA12 output status
M1215->X:$078158,19 ; USER12 flag input status
M1217->X:$078158,11 ; ENC12 capture flag
M1218->X:$078158,8 ; ENC12 count error flag
M1219->X:$078158,14 ; CHC12 input status
M1220->X:$078158,16 ; HMFL12 flag input status
M1221->X:$078158,17 ; PLIM12 flag input status
M1222->X:$078158,18 ; MLIM12 flag input status
M1223->X:$078158,15 ; FAULT12 flag input status
M7240->X:$7815D,0,4 ;I7mn0
M7241->X:$7815D,13,1 ;I7mn1
M7242->X:$7815D,4,4 ;I7mn2
M7243->X:$7815D,8,4 ;I7mn3
M7246->X:$7815D,20,4 ;I7mn6
// Default values (NOT retained on a "SAVE" command)
M7240 = 3
M7241 = 0
M7242 = 1
M7243 = 0
M7246 = 0
//Motor specific I-variables (retained on a "SAVE" command)
I1224 = 1
I1225 = $78158
I1269 = 1001
I1202 = $7815A
I1203 = $350C
I1204 = $350C
The default values not retained on a “SAVE” command must again be added to the “run once startup
PLC” from the previous section:
OPEN PLC 25 CLEAR
M7200 = 1001
M7201 = 5
M7202 = 3
M7203 = 1746
M7204 = 15
M7205 = $7FFFC0
M7206 = $FFFFFE
// Motor #9 defaults
M7210 = 3
M7211 = 0
M7212 = 1
M7213 = 0
M7216 = 0
// Motor #10 defaults
M7220 = 3
M7221 = 0
M7222 = 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com