Sigma - Creating a programmable object to mimic another object value.

Issue

The new programmable object should read an existing object (1) and a time schedule (2). When the time schedule switches off the value from object 1 will be held and outputted. This output will be maintained until the next time schedule off period, when it will be reviewed again.
 

Product Line

Satchwell Sigma

Environment

Sigma

Programmable object

Prog Point

programming

Cause

Assistance required to create a programmable object.

Resolution

The object below will fulfill the requirements.

Use appropriate controller and object numbers.

Object 1 = Existing programme to be monitored

Object 2 = Time Schedule.

10 IF P (2) ON THEN XINT = 1 ELSE XINT = 0
20 IF XINT DOWN THEN GOTO 40
30 GOTO 50
40 IF P (1) ON THEN YINT = 1 ELSE YINT = 0
50 IF YINT = 1 THEN RETURN TRUE "HW"
60 RETURN FALSE "CW"