Persistent Number

Control Block

Description

Persistent Numbers are retained through controller power cycles. Persistent information is used to preserve information such as taught locations and cycle counts over the lifetime of a machine. Persistent Numbers retain double precision floating point values. Persistent Numbers are created with the "Add Variable" button in found in the Data Category and checking the "Persistent" checkbox.

Escapes

Reading the value of a Persistent Number does not generate any escapes

Examples

This block list performs a transfer operation using taught persistent numbers for pickup and placement locations:

If information is retained in Persistent Numbers it is a good idea to save those values in a file so that if the controller is field replaced the persistent values could be restored into the replacment controller. This list of blocks saves some persistent variables to a file:

Related Topics

Persistent Boolean
Set Persistent Number
Set Persistent Boolean
Set Persistent Save Delay
Set Number