G
‐
MAS
–
Gold
Maestro
Software
User’s
Manual
Software
User
Manual
XXXXXXXXXXXX(0.01)
4
‐
50
Understanding
the
structure
of
the
Multi
‐
Axis
Motion
Control
core
is
critical
for
optimal
operation
of
the
G
‐
MAS.
Please
refer
to
the
dedicated
section
below
to
learn
details
of
the
Multi
‐
Axis
Motion
Control
core.
•
Management
of
the
device
network
(CAN
or
EtherCAT)
and
communication
with
the
end
‐
units.
4.2.1.
Function Blocks Interfaces
Function
Blocks
refer
to
the
library
of
interface
functions
that
are
available
for
the
users
through
the
library
supplied
by
Elmo:
Elmo’s
G
‐
MAS
Function
Block
Library.
The
same
set
of
functions
are
available
for
the
Host
programmer
(who
is
developing
the
Host
Application,
see
above)
and
for
the
G
‐
MAS
programmer
(who
is
developing
the
User
Application
for
the
G
‐
MAS,
see
below).
The
Function
Blocks’
library
includes
functions
to
create
motions,
manage
the
device
network,
create
and
manager
events,
etc.
Please
refer
to
the
G
‐
MAS
Administrative
and
Motion
API
User’s
Manual
for
a
detailed
description
of
each
of
the
available
Function
Blocks.
Here
is
some
brief
information
about
the
Function
Block
interfaces:
•
The
API
consists
of
a
list
of
functions
with
input
and
output
values.
•
For
instance
‐
the
MC_MoveAbsolute
is
as
follows:
int
MMC_MoveAbsoluteCmd(Connection
handle,
Axis
Reference,
MMC_MOVEABSOLUTE_IN
structure,
MMC_MOVEABSOLUTE_OUT*
structure);
Where:
•
All
functions
include
a
connection
handle.
•
Motion
Functions
include
a
reference
to
an
axis
(Group
or
single
axis).
Obtained
by
GetAxisRef().
•
All
functions
include
an
‘In’
structure
and
an
‘Out’
structure.
•
The
‘In’
structure
will
include
information
regarding
the
motion.
•
The
‘Out’
structure
will
include
information
regarding
whether
the
function
call
succeeded
or
not.
•
If
the
API
function
is
to
return
data
(such
as
ReadActualPosition()
)
–
then
the
‘Out’
structure
will
of
course
include
the
designated
information.
•
All
function
calls
return
immediately.
This
does
not
mean
that
the
functionality
is
complete.
Function
calls
sometimes
initiate
a
background
sequence
(MoveAbsolute()
for
instance
…).
•
All
motion
function
blocks
return
a
status
register,
which
reflects
the
function
CALL
only.
If
an
error
occurs
by
sending
incorrect
parameters(range)
/
state
machine
–
the
function
block
call
returns
an
error.
Содержание Gold Maestro G-MAS
Страница 1: ...G MAS Gold Maestro Software User s Manual March 2011 Ver 1 0 www elmomc com...
Страница 40: ...G MAS Gold Maestro Software User s Manual Software User Manual XXXXXXXXXXXX 0 01 3 38 Then the next stage is...
Страница 43: ...G MAS Gold Maestro Software User s Manual Software User Manual XXXXXXXXXXXX 0 01 3 41 Then the next stage is...