SYNC – Synchronization Mode
Returns or sets the value of the synchronization mode (condition and source). Bit 0-3 indicates the synchronization type and condition; Bit 4 indicates the source used for the counter encoder/pulse position that is to be used to trigger the synchronization output. The SYNO[axis], SYNON[axis], or SYNWO[axis] command must be executed for the command to be sent from local memory to the ASIC, in both Standalone and ASCII operations.
Applies to: CMD-4CR, CMD-4EX-SA
ASCII SYNC[axis]
Standalone SYNCFG[axis]
Syntax:
Read:
SYNC[axis]
SYNCFG[axis]
Where: [axis] is set to X, Y, Z, U |
Write:
SYNC[axis]=[n]
SYNCFG[axis]=[n]
Where: [axis] is set to X, Y, Z, U [n] is the decimal equivalent of the 5-bit number for the synchronization mode. See the chart below. |
Bit |
Description |
Decimal |
||
Pulse Position |
Encoder Position |
|||
0-3 |
Synchronization Condition: |
From sync source: |
||
0001 |
Trigger when sync position = actual position. Any direction |
1 |
17 |
|
0010 |
Trigger when sync position = actual position. Positive direction |
2 |
18 |
|
0011 |
Trigger when sync position = actual position. Negative direction |
3 |
19 |
|
0100 |
Trigger when sync position > actual position |
4 |
20 |
|
0101 |
Trigger when sync position < actual position |
5 |
21 |
|
0111 |
Reserved/not available |
|
|
|
1000 |
Trigger every sync position. Any direction |
8 |
24 |
|
1001 |
Trigger every sync position. Positive motion |
9 |
25 |
|
1010 |
Trigger every sync position. Negative motion |
10 |
26 |
|
4 |
Synchronization Source: |
|
|
|
0 |
Sync position is compared to pulse position |
|
|
|
1 |
Sync position is compared to encoder position |
|
|
Reply:
Command is accepted and executed
Read:
Returns the decimal equivalent of the 4-bit number for the synchronization mode; see chart above.
Write:
OK
Command cannot be processed
An error message is returned. See Error Codes
Example:
Read:
SYNCY * Returns current synchronization mode for the Y axis in decimal
Write:
ASCII
Example: Turning on synchronization output
SYNPX=4 * Sets target synchronization position to 4 on X-axis
SYNCX=1 * Sets synchronization mode to at-position, in any direction, on X-axis, based on pulse position
SYNOX * Writes data to ASIC then turns on synchronization for the X-axis
Example: Making changes to synchronization mode with an output timing chart
SYNCX=8 * Sets sync mode to continuous, in any direction, on X-axis, based on pulse position
SYNOX * Turns on synchronization for the X-axis
Output based on the above two examples (SYNPX=4 and SYNCX=8):
Example: Making changes to synchronization mode
SYNCX=3 * Sets synchronization mode to at-position, in the negative direction, on X-axis, based on pulse position
SYNOX * Writes new values to the ASIC for the X-axis
Standalone
Example: Turning on synchronization output
SYNPOSZ=700 * Sets target synchronization position to 700 on Z-axis
SYNCFGZ=8 * Sets synchronization mode to continuous, in any direction, on Z-axis, based on pulse position
SYNONZ * Writes data to ASIC then turns on synchronization for the Z-axis
Example: Making changes to synchronization mode
SYNCFGZ=24 * Sets synchronization mode to continuous, in any direction, on Z-axis, based on encoder position
SYNONZ * Writes new values to the ASIC for the Z-axis
Notes:
- The synchronization mode for each axis is read and set independently.
- The synchronization digital output will remain ON as long as the comparison condition is true.
See also:
SYNF, SYNO, SYNP, SYNS, SYNWO, SYNWF, SYNMAX, SYNMIN