You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.12">
<DUT Name="PIDParam" Id="{a4e56d41-8809-4704-890c-739d6c980f22}">
<Declaration><![CDATA[TYPE PIDParam :
STRUCT
// LREAL
(*
// Inputs
fSetpointValue : LREAL; (* setpoint value *)
fActualValue : LREAL; (* actual value *)
bReset : BOOL; (* TRUE at this input resets the internal state variables and the controller output. *)
bManual : BOOL; (* Manual mode ON/OFF *)
fM_In : REAL; (* Output in Manual Mode *)
fOfs : REAL; (* Offset for the output *)
fCtrlCycleTime : LREAL; (* controller cycle time in seconds [s] *)
fKp : LREAL; (* proportional gain Kp (P) *)
fTn : LREAL; (* integral gain Tn (I) [s] *)
fTv : LREAL; (* derivative gain Tv (D-T1) [s] *)
fTd : LREAL; (* derivative damping time Td (D-T1) [s] *)
fLL : REAL; (* lower output limit *)
fLH : REAL; (* upper output limit *)
// Outputs
fCtrlOutput : LREAL; (* Output of the PID-element. *)
nErrorStatus : UINT; (* 0 - nERR_NOERROR No error; 1 - nERR_INVALIDPARAM Invalid parameter; 2 - nERR_INVALIDCYCLETIME Invalid cycle time. *)
DIFF : REAL; (* deviation *)
LIM : BOOL; (* TRUE if the output has reached a limit *)
*)
// REAL
// Inputs
fSetpointValue : REAL; (* setpoint value *)
fActualValue : REAL; (* actual value *)
bReset : BOOL; (* TRUE at this input resets the internal state variables and the controller output. *)
bManual : BOOL; (* Manual mode ON/OFF *)
fM_In : REAL; (* Output in Manual Mode *)
fOfs : REAL; (* Offset for the output *)
fCtrlCycleTime : REAL; (* controller cycle time in seconds [s] *)
fKp : REAL; (* proportional gain Kp (P) *)
fTn : REAL; (* integral gain Tn (I) [s] *)
fTv : REAL; (* derivative gain Tv (D-T1) [s] *)
fTd : REAL; (* derivative damping time Td (D-T1) [s] *)
fLL : REAL; (* lower output limit *)
fLH : REAL; (* upper output limit *)
// Outputs
fCtrlOutput : REAL; (* Output of the PID-element. *)
nErrorStatus : UINT; (* 0 - nERR_NOERROR No error; 1 - nERR_INVALIDPARAM Invalid parameter; 2 - nERR_INVALIDCYCLETIME Invalid cycle time. *)
DIFF : REAL; (* deviation *)
LIM : BOOL; (* TRUE if the output has reached a limit *)
END_STRUCT
END_TYPE
]]></Declaration>
</DUT>
</TcPlcObject>