2 Machine Synchronization
2.10.1.2. PrxActivAndStoreRecord
3HAC18154-1 Revision: F80
© Copyright 2004-2008 ABB. All rights reserved.
2.10.1.2. PrxActivAndStoreRecord
Usage
Activate the recorded profile data and store it in a file.
Can be used instead of calling both
PrxActivRecord and PrxStoreRecord.
Basic example
PrxActivAndStoreRecord SSYNC1, 1, "profile.log";
Profile of sensor movement activated and is stored in the file profile.log.
Arguments
PrxActivAndStoreRecord MechUnit Delay File_name
MechUnit
Data type: mechunit
The moving mechanical unit object to which the robot movement is synchronized.
Delay
Data type: num
The delay in seconds can be used to shift the record in time. It must be between 0.01 and 0.1.
If given the value 0 no delay is added. The delay is not saved in the profile, it is just used for
the activation. If the delay should be used together with a saved profile the delay has to be
specified again in the instruction
PrxUseFileRecord.
File_name
Data type: string
Name of the file where the profile is stored.
Program execution
PrxActivAndStoreRecord must be executed at least 0.2 seconds before start of sensor
movement if the record is to be used for synchronization.
Error handling
The following recoverable errors can be generated. The errors can be handled in an error
handler. The system variable ERRNO will be set to:
Syntax
PrxActivAndStoreRecord
[ MechUnit‘ :=’ ] < expression (IN) of mechunit> ’,’
[ Delay ‘:=’ ] < expression (IN) of num > ’,’
[ File_name ‘:=’ ] < expression (IN) of string > ‘;‘
ERR_ACTIV_PROF for error at activate profile
ERR_STORE_PROF for error at store profile
ERR_USE_PROF for error at use profile
Continues on next page