Motion synchronous actions
10.3 Main run variables for synchronized actions
Job planning
566 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Arithmetic parameters
Using arithmetic parameters allows for:
● Storage of values that you want to retain beyond the end of program, NC reset, and
Power On
● Display of stored value in the R parameter display.
Examples
Program code Comments
WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y] ; Using R10 in synchronized actions.
G01 X500 Y70 F1000
STOPRE ; Preprocessing stop
IF R10>20 ; Evaluation of the arithmetic
variable.
Program code
SYG_AS[2]=X
SYG_IS[1]=1
WHEN $AA_IM[SGY_AS[2]]>10 DO $R3=$AA_EG_DENOM[SYG_AS[1]], SYG_AS[2]]
WHEN $AA_IM[SGY_AS[2]]>12 DO $AA_SCTRACE[SYG_AS[2]]=1
SYG_AS[1]=X
SYG_IS[0]=1
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_IS[0]],SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>10 DO $R3=$$MA_POSCTRL_GAIN[SYG_AS[1]]
WHEN $AA_IM[SGY_AS[1]]>15 DO $$MA_POSCTRL_GAIN[SYG_AS[0]], SYG_AS[1]]=$R3
10.3.8 Read and write NC machine and NC setting data
Function
It is also possible to read and write NC machine / setting data of synchronized actions. When
reading and writing machine data array elements, an index can be left out during
programming. If this happens in the part program, all of the array's elements are described
with the value when reading the first array element and when writing.
In synchronized actions, only the first element is read or written in such cases.
Definition
MD, SD with
$: Read the value at the interpretation time of the synchronized actions
$$: Read the value in the main run