5
Sequence control and I/O data
38
Festo – GDCP-CMMO-ST-LK-C-HP-EN – 2017-05b – English
Example 5: Positioning record selection (requires status S4)
Step
Control bytes (job)
5.1 Record number pre
selection (control byte 3)
Record no.
1 ... 64
Previous record no.
1 ... 64
5.2 Start job
CCON.ENABLE
= 1
SCON.ENABLED
= 1
CCON.STOP
= 1
SCON.OPEN
= 1
CPOS.HALT
= 1
SPOS.HALT
= 1
CPOS.START
= P
SPOS.ACK
= 1
SPOS.MC
= 0
5.3 Job is running
CPOS.START
= 1
SPOS.MOV
= 1
Record no.
1 ... 64
Current record no.
1 ... 64
5.4 Job ended
CPOS.START
= 0
SPOS.ACK
= 0
SPOS.MC
= 1
SPOS.MOV
= 0
1)
Key: P = rising edge (positive), N = falling edge (negative), x = any
Tab. 5.9
Control and status bytes “Positioning record selection”
Description of the steps:
(Steps 5.1 .... 5.4 conditional sequence)
When the ready status is established and homing has been carried out, a positioning job can be started.
5.1
Preselect record number: Byte 3 of the output data
0 =
Homing
1 ... 64
= Programmable positioning records
5.2
With CPOS.B1 (START, start job) the preselected positioning job will be started. The start is con
firmed with SPOS.ACK (Acknowledge start) as long as CPOS.START is set.
5.3
Movement of the axis is shown with SPOS.MOV.
5.4
At the end of the positioning task, SPOS.MC will be set.
Summary of Contents for CMMO-ST-C5-1-LKP
Page 182: ......