
Parker Hannifin
58 Programmer’s Guide
Printing the Current Value
You can send the PRINT command followed by a parameter or bit
whose value you want to see. Bits return the following values:
• -1 when set.
• 0 when clear.
You can use a question mark in place of the PRINT command. The
question mark is a shortcut in a terminal emulator.
NOTE: When printing a system parameter, the value returned is
either an integer or a 32-bit floating point.
When printing a user parameter (P0-P4095), the value returned is
either an integer or 64-bit floating point.
Example
The following demonstrates how to view values stored in parameters
and bits. Parameter 6144 provides the current encoder position;
Bit24 provides the current state of input 24.
PRINT P6144
PRINT Bit24
?P6144
?Bit24
A Word on Aliases
Parameters and bits can use aliases. You only need to assign the
alias once, and then can use it throughout user programs. The alias
lets you provide a name that makes sense for programs, and makes
programs easier to read.
For more information, see Aliases Aliases
.
Commentaires sur ces manuels