User Program Control & Status Parameters

Navigation:  Unidrive M600-M702 Onboard Programming Reference >

User Program Control & Status Parameters

Previous pageReturn to chapter overviewNext page

 

While the user program can be started, stopped and monitored from Machine Control Studio, Unidrive M provides a set of parameters that can be used to control the program and determine the program status. These parameters can be read of written over communications, e.g. RTU or the drive keypad.

 

Parameter

Description

11.047

Onboard User Program Enable

 

This parameter controls whether the drive executes the user program. The parameter has the following values.

 

0 - Disable User Program

 

If this value is set while the user program is already running, the program will stop executing.

 

1 - Run the User Program

 

The user program will execute.

 

Note: This parameter is only read by the drive once every 4ms. this means that after clearing the parameter, the user program Freewheeling task may perform a number of scans before the user program stops.

 

Warning: If this parameter is saved with a value of 1 the user program will start when the drive powers up.

 

11.048

User Program Status

 

This parameter is read-only and indicates the status of the user program in the drive. The parameter has the following values:

 

0 -  Stopped

 

This indicates that a program is not running or not present on the drive.

 

1 - Present/ Running

 

A user program is present in the drive and is currently running.

 

11.049

Number of Programming Events

 

The value is a count of the number of times a user program has been downloaded to the target.

 

It is not recommended that you download a program to the Unidrive M more than 100 times as the drive flash memory supports a limited number of writes.

 

11.050

Background Task Data

 

This parameter gives the number of scans of the Freewheeling task in the last second.

 

11.051

Timed Task Time Used

 

This value gives the percentage of the available CPU resource (time) used by the user program Clock task.

 

11.055

Timed Task Schedule Rate

 

This parameter specifies the period between the start of one schedule of the Clock task and the next. The value is specified in multiple of 4ms, i.e. the value 1 gives a 4ms scheduling period, the value 3 a 12ms scheduling period and so on. The maximum value is 65536 giving a maximum scheduling period of 262140ms, or 262 seconds.

 

 

See Also

 

Unidrive M Programming Reference