Parker EME
Motion control
192-121102 N04 June 2008 237
5.10.6.2 Recording the position of the selected master source
(C3_MasterControl)
FB name C3_MasterControl
Start and Stop of the master detection
VAR_IN_OUT
Slave
INT Axis-ID (library constants)
VAR_INPUT
Enable
BOOL
Starting the module.
Acquisition is started or stopped in accordance with the
Mode
StartMode
INT
Selection of the Start mode
1: Start of the detection with rising edge of the enable
2: Fast start after external event (Impulse). Defined by
”StartSource” and ”StartMask”, , does start within 0.5ms.
3: Start of the acquisition with the next encoder zero pulse,
after the start of the modules (Enable = TRUE)
StartSource
DWORD
Specification of an object (see example) for starting the
detection.
Only relevant with StartMode 2.
The address operator ADR () must be used for the selection
of an object.
StartMask
WORD
Binary mask for and-linking the source in order to select a
bit from the source object.
Only relevant with StartMode 2.
StopMode
INT
Selection of the Stop mode
1: Stops the acquisition with falling edge of the Enable
2: Stops the detection at the end of the master clock
distance. Defined via the curve or via C3_MasterConfig
(see page 243).
Periodic
BOOL
False: run trough once
True: cyclic run
BackStop
BOOL
False: Backstop not active
True: Back stop active
Master
INT
Axis- ID of theMaster signal source (see page 161)
AX
IS_REF_HEDA: HEDA
AXIS_REF_Physical: +/-10V, step/direction/ Encoder
AXIS_REF_Virtual: virtual Master
VAR_OUTPUT
Status
BOOL Shows that the master position acquisition is running
EndOfProfile
BOOL Impulse at the end of the configured master cycle
Busy
BOOL Waiting for an external event
Error
BOOL Command was aborted; error when starting the detection
Note:
Witht the active enable, the "Periodic" and "Master" inputs are always accepted.
With the transition Enable low to high the StartMode is evaluated.
With the transition Enable high to low the StopMode is evaluated.
Only one module controlling the detection is allowed in the project.
Enable and StartSource must have different sources.