B.7.1.2 groupcommoninit, B-27 – ElmoMC Multi-Axis Motion Controller-Maestro User Manual

Page 279

Advertising
background image

a2.px=1000

a1.sp

=

10000

a2.sp

=

20000


a1.mo=1 // Turn MOTOR ON

a2.mo=1 // Turn MOTOR ON

wait(10)

a1.pa

=

10000

a2.pa

=

30000

G1.bg
end function

function InitGroup(GROUP group)
int i

// for each axes on the grope "G1"

//using group as array of motion axis

for

i=0:G1.size-1

G1[i].rm = 0 //The reference is

generated by the interpreter command or by the user
program.

G1[i].mo = 0

wait(10)

G1[i].sf = 0

G1[i].um = 5

G1[i].ll[2]

=

-833333

G1[i].hl[2] = 833333

G1[i].VH[2] = 750000

G1[i].VL[2] = -750000

G1[i].ll[3]

=

-1000000000

G1[i].hl[3] = 1000000000

G1[i].VL[3] = -999999990

G1[i].VH[3] = 999999990


end

for


end function

B.7.1.2 GroupCommonInit


function run()
int

i

sync(0,30)

// for each axes on the grope "G"

for

i=0:G1.size-1

InitGroup(G1)

end

for


G1.px=0

G1.mo=1 // Turn MOTOR ON

wait(10)

G1.pa = 10000

G1.bg
end function

function InitGroup(GROUP group)
int i

// for each axes on the grope "G1"

Maestro

Software Manual

Appendix B: Sample Programs

MAN-MASSW (Ver. Q)

B-27

Advertising