TRIMPOT_READ (read trimpot)

The TRIMPOT_READ instruction reads the trimpot value from a specific trimpot.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the L20E, L50E, and L70E controllers.
TRIMPOT_READ
TRIMPOT_READ
TRIMPOT_READ parameters
Parameter
Parameter Type
Data Type
Description
Enable
Input
BOOL
Instruction block enable.
  • TRUE: Execute Trimpot read.
  • FALSE: There is no read operation and output Trimpot value is invalid.
TrimPotID
Input
UINT
The ID of the Trimpot to be read. TrimPotID is defined in Trimpot ID definition.
TrimPotValue
Output
UINT
Current trimpot value.
Sts
Output
UINT
The Trimpot read operation status.
TRIMPOT status (Sts) codes:
  • 0x00: Function block not enabled (no read/write operation).
  • 0x01: Read/write operation success.
  • 0x02: Read/write operation fails due to an invalid Trimpot ID.
  • 0x03: Write operation fails due to an out of range value.
ENO
Output
BOOL
Enable output.
Applies only to ladder diagram programs.

TRIMPOT_READ examples

TRIMPOT_READ function block diagram example
TRIMPOT_READ function block diagram example
TRIMPOT_READ ladder diagram example
TRIMPOT_READ ladder diagram example
TRIMPOT structured text example
TRIMPOT structured text example
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal