Users manual
22-10
SCADA 3000 User’s Manual
Month(Now) ' Holds the present value from 1 to 12.
Day(Now) ' Holds the present value from 1 to 31.
Year(Now) ' Holds the present value in 4 digit format (e.g. 2001).
Hour(Now) ' Holds the present value in 24 hour time from 0 to 23.
Minute(Now) ' Holds the present value from 0 to 59.
Second(Now) ' Holds the present value from 0 to 59.
Weekday(Now) ' Holds the present value from 0(Sunday) to 6(Saturday).
Example: This program will set DataPointValue4 to 35 at midnight.
if (Hour(Now)=0) and (Minute(Now)=0) and (Second(Now)=0) then
DataPointValue4.Value = 35
end if
Programming Methodology
There are three methods that will typically be used when creating a control system based on
a distributed control program. The method you choose will depend on your application, how
many units you have, and other factors which may be specific to your application. The three
methods are described below:
Method 1
Your distributed control program performs all control logic. No logic programs run on the
SCADA units themselves.
Advantages
• Thisallowsforcentralizedcontrolandthereisonlyonecontrolprogramtocre-
ate and maintain.
Disadvantages
• YouwillneedallI/Opointsrequiredforrunningyourlogicprogramtobeonthe
realtime screen.
• IfthePCcrashesortheprogrammustbehalted,thenallcontrolstops.
Method 2
Your distributed control program only passes I/O information from one unit to another. All
control logic is performed in the SCADA units themselves using a C or Ladder program.
Information can easily be read from unit A and written into the C or ladder variables of unit B.
Advantages
• ControlisperformedlocallyattheSCADAunit.IfthePCrunningthedistrib-
uted control program crashes or if the program must be halted, local control will
continue to function.
• ThisminimizesthenumberofI/Opointsonyourrealtimescreen.
Disadvantages
• YouwillneedtohaveseparatecontrolprogramsrunningforeachSCADAunit
which may be more complicated to write and maintain.
Method 3
AcombinationofMethods1&2whereboththedistributedcontrolprogramrunscontrol
logic and each SCADA unit also runs its own specific control program.