Download CPU 31xC: Technological functions - Service, Support

Transcript
Positioning with Analog Output
3.4 Functions for Positioning with Analog Output
3.4.9
Deleting the Distance-to-Go
Description
After a target run (absolute or relative incremental approach) the pending distance-to-go
(DIST_TO_GO) can be deleted with the job.
Requirements
● You have assigned the module parameters via parameter assignment screens and
downloaded them to the CPU (PARA = TRUE).
● You have assigned the basic parameters of the SFB as described in Section Basic
Configuration of the SFB ANALOG (SFB 44) (Page 48).
● The last job must be finished (JOB_DONE = TRUE).
● The last positioning operation must be ended (WORKING = FALSE).
Procedure
● Assign the following input parameters (accessible via instance DB) as specified in the
"Setting" column:
Parameter
Data type
Address
Description
(instance DB)
Value range
JOB_REQ
BOOL
76.0
TRUE/FALSE FALSE
TRUE
JOB_ID
INT
78
Job, 2 = Delete distance-to-go
1, 2
0
2
JOB_VAL
DINT
82
None
-
0
Any
Job trigger (positive edge)
Default
Setting
● Call the SFB.
The output parameters of the SFB (accessible via instance DB) provide the following
information:
Parameter
Data type
Address
Description
(instance DB)
Value range
Default
JOB_DONE
BOOL
76.1
New job can be started
TRUE/FALSE
TRUE
JOB_ERR
BOOL
76.2
Faulty job
TRUE/FALSE
FALSE
JOB_STAT
WORD
80
Job error ID
0 to FFFF hex
0
● The job is immediately processed after the SFB is called. JOB_DONE is set to FALSE for
the duration of one SFB cycle.
● You must reset the job request (JOB_REQ).
● JOB_ERR = TRUE if an error occurs. The precise error cause is then indicated in
JOB_STAT.
● A new job can be started with JOB_DONE = TRUE.
Simultaneous Call of a Job and a Positioning Operation
When a positioning operation and a job are initiated simultaneously, the job is executed first.
Positioning is not executed if the job ends with an error.
A job initiated while a run is busy will be ended with an error.
CPU 31xC: Technological functions
Operating Instructions, 03/2011, A5E00105484-05
69