Hardware Reference Manual
Software Setup
25
I903 = $3509
I904 = $3509
The default values not retained on a “SAVE” command must be
added
to the “run once startup PLC”
from the previous section that set up the main hardware clocks:
OPEN PLC 25 CLEAR
// Main HDW Clocks
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
DIS PLC 25
CLOSE
Note:
After loading this program, set I5=2 or 3 and ENABLE PLC 1.
// SECOND CHANNEL OF GATE #3 - MOTOR #10
M1001->X:$078149,0,24,S ; ENC10 24-bit counter position
M1002->Y:$07814A,8,16,S ; OUT10A command value; DAC or PWM
M1003->X:$07814B,0,24,S ; ENC10 captured position
M1014->X:$07814D,14 ; AENA10 output status
M1015->X:$078148,19 ; USER10 flag input status
M1017->X:$078148,11 ; ENC10 capture flag
M1018->X:$078148,8 ; ENC10 count error flag
M1019->X:$078148,14 ; CHC10 input status
M1020->X:$078148,16 ; HMFL10 flag input status
M1021->X:$078148,17 ; PLIM10 flag input status
M1022->X:$078148,18 ; MLIM10 flag input status
M1023->X:$078148,15 ; FAULT10 flag input status
M7220->X:$7814D,0,4 ;I7mn0
M7221->X:$7814D,13,1 ;I7mn1
M7222->X:$7814D,4,4 ;I7mn2
M7223->X:$7814D,8,4 ;I7mn3
M7226->X:$7814D,20,4 ;I7mn6
// Default values (NOT retained on a "SAVE" command)
M7220 = 3
M7221 = 0
M7222 = 1
M7223 = 0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com