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

SpExt

INT

0

1: External setpoint. Calculated setpoint or output from another PID controller (e.g. PCO_PIDCON) in a cascade control system.

PV

INT

0

2: Process value (to be controlled). Process value obtained from the system

Track

BOOL

FALSE

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.

TrackSp

INT

0

4: Tracking value. Output of the controller will be set to TrackSp if Track = TRUE

Bal

BOOL

FALSE

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.

BalSp

INT

0

6: Balancing setpoint. Output of the controller will be set to BalSp if Bal = TRUE

RevAct

BOOL

FALSE

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

EnAuto

BOOL

TRUE

  1. Enable auto operation of PID controller

AutoCmdStart

BOOL

FALSE

9: Force the motor to start, IF the motor is in automatic mode. E.g. AutoCmdStart could be

AutoCmdStop

BOOL

FALSE

10: Force the motor to stop, IF the motor is in automatic. E.g. AutoCmdStop could be

EnStart

BOOL

TRUE

11: Enable Motor to be started.

EnStop

BOOL

TRUE

12: Enable motor to be stopped.

EnAcc

BOOL

TRUE

13: Enable motor to increase speed

EnDec

BOOL

TRUE

14: Enable motor to decrease speed

EmcyStart

BOOL

FALSE

15: Emergency start, Motor will start if EmcyStart = TRUE.

EmcyStop

BOOL

FALSE

16: Emergency stop. Motor will stop if EmcyStop = TRUE.

ActPos

INT

0

17: Feedback speed of motor, Scaling 0-10000

Run

BOOL

FALSE

18: Motor is running

Stop

BOOL

FALSE

19: Motor is stopped

Rdy

BOOL

TRUE

20: Motor is ready for operation. (Ready=FALSE results in external error)

Remote

BOOL

TRUE

21: Motor can be controlled from OS (Remote=FALSE means local operation)

InhibError

BOOL

FALSE

22: InhibError=TRUE : Suppress all alarm. InhibError=FALSE : No suppression

Alarm1

BOOL

FALSE

23: Auxiliary alarm no. 1

Alarm2

BOOL

FALSE

24: Auxiliary alarm no. 2

Alarm3

BOOL

FALSE

25: Auxiliary alarm no. 3

Alarm4

BOOL

FALSE

26: Auxiliary alarm no. 4

Alarm5

BOOL

FALSE

27: Auxiliary alarm no. 5

Alarm6

BOOL

FALSE

28: Auxiliary alarm no. 6

BehaveOnError

BYTE

0

29: BehaveOnError = 0 Causes the output to remain unaffected in case of a functional error or an external error (Not ready).

OutputHandling

BYTE

1

30: OutputHandling = 0 Causes the output to be reset at In or Out feedback.

InhibFctErrTime

TIME

TIME#5s0ms

31: Maximum delay time from OS command to response from process.

RampTime

TIME

TIME#30s0ms

32: Actuator time. (from 0% to 100 % speed)

RampActive

BOOL

FALSE

33: RampActive= TRUE activates ramp under manual positioning.

Inout

Scada

PCO_MOTCON_TYPE

34: Structure variable for connection to Scada system

Output

Error

BOOL

FALSE

Operation continues with error. The output ErrorID gives more details about the error.

CmdStart

BOOL

FALSE

1: Command output Start

CmdStop

BOOL

FALSE

2: Command output Stop

Out

INT

0

3: Output to the motor (0-27648)

OutMax

BOOL

FALSE

4: Output limited to the high value

OutMin

BOOL

FALSE

5: Output limited to the low value

ErrorID

ERROR_ID

ERROR_ID.NO_ERROR

6: Err number, Output provides an error identifier if an invalid value was applied to an input