PcoMotCon (FB)
FUNCTION_BLOCK PcoMotCon
This function block is designed for controlling a speed-controlled motor. The function block is similar to PcoMot (Fixed speed motor controller), but in addition to PcoMot the function block has build in a PID-controller, and software for manual positioning.
- InOut:
Scope
Name
Type
Initial
Comment
Input
SpExtINT0
1: External setpoint. Calculated setpoint or output from another PID controller (e.g. PCO_PIDCON) in a cascade control system.
PVINT0
2: Process value (to be controlled). Process value obtained from the system
TrackBOOLFALSE
3: Tracking mode. PCO_MOTCON can be set in Tracking mode if Track = TRUE. Output of the controller will be set to TRACK_VALUE. (Track mode has higher priority compared to balancing mode). Track is independent of operation mode of PCO_MOTCON.
TrackSpINT0
4: Tracking value. Output of the controller will be set to TrackSp if Track = TRUE
BalBOOLFALSE
5: Balancing mode. PCO_MOTCON can be set in Balancing mode if Bal = TRUE and Track = FALSE. Output of the controller will be set to BalSp. Bal is independent of operation mode of PCO_MOTCON.
BalSpINT0
6: Balancing setpoint. Output of the controller will be set to BalSp if Bal = TRUE
RevActBOOLFALSE
7: RevAct = FALSE, controller will increase output if Setpoint is less than Process value. RevAct = TRUE, controller will decrease output if Setpoint is greater than Process value
EnAutoBOOLTRUE
Enable auto operation of PID controller
AutoCmdStartBOOLFALSE
9: Force the motor to start, IF the motor is in automatic mode. E.g. AutoCmdStart could be
AutoCmdStopBOOLFALSE
10: Force the motor to stop, IF the motor is in automatic. E.g. AutoCmdStop could be
EnStartBOOLTRUE
11: Enable Motor to be started.
EnStopBOOLTRUE
12: Enable motor to be stopped.
EnAccBOOLTRUE
13: Enable motor to increase speed
EnDecBOOLTRUE
14: Enable motor to decrease speed
EmcyStartBOOLFALSE
15: Emergency start, Motor will start if EmcyStart = TRUE.
EmcyStopBOOLFALSE
16: Emergency stop. Motor will stop if EmcyStop = TRUE.
ActPosINT0
17: Feedback speed of motor, Scaling 0-10000
RunBOOLFALSE
18: Motor is running
StopBOOLFALSE
19: Motor is stopped
RdyBOOLTRUE
20: Motor is ready for operation. (Ready=FALSE results in external error)
RemoteBOOLTRUE
21: Motor can be controlled from OS (Remote=FALSE means local operation)
InhibErrorBOOLFALSE
22: InhibError=TRUE : Suppress all alarm. InhibError=FALSE : No suppression
Alarm1BOOLFALSE
23: Auxiliary alarm no. 1
Alarm2BOOLFALSE
24: Auxiliary alarm no. 2
Alarm3BOOLFALSE
25: Auxiliary alarm no. 3
Alarm4BOOLFALSE
26: Auxiliary alarm no. 4
Alarm5BOOLFALSE
27: Auxiliary alarm no. 5
Alarm6BOOLFALSE
28: Auxiliary alarm no. 6
BehaveOnErrorBYTE0
29: BehaveOnError = 0 Causes the output to remain unaffected in case of a functional error or an external error (Not ready).
OutputHandlingBYTE1
30: OutputHandling = 0 Causes the output to be reset at In or Out feedback.
InhibFctErrTimeTIMETIME#5s0ms
31: Maximum delay time from OS command to response from process.
RampTimeTIMETIME#30s0ms
32: Actuator time. (from 0% to 100 % speed)
RampActiveBOOLFALSE
33: RampActive= TRUE activates ramp under manual positioning.
Inout
Scada34: Structure variable for connection to Scada system
Output
ErrorBOOLFALSE
Operation continues with error. The output ErrorID gives more details about the error.
CmdStartBOOLFALSE
1: Command output Start
CmdStopBOOLFALSE
2: Command output Stop
OutINT0
3: Output to the motor (0-27648)
OutMaxBOOLFALSE
4: Output limited to the high value
OutMinBOOLFALSE
5: Output limited to the low value
ErrorIDERROR_ID.NO_ERROR
6: Err number, Output provides an error identifier if an invalid value was applied to an input