Phoenix Contact 2701027 NLC-050-024D-06I-04QTP-00A nanoLine Base Unit 24ßV/DC / PNP 2701027 Data Sheet

Product codes
2701027
Page of 184
Data Operations
2373_en_B
PHOENIX CONTACT
5-7
5.2.1
Current Date, Day, and Time
The Compare block lets you access the real-time clock in the nanoLC to check the current 
date, day (of week, month, or year), and time. There are specific subtypes for some of these 
comparisons, and the Compare block ensures that you select the appropriate subtype. 
Subtypes that you can use in a Compare to test the current real-time clock are:
5.3
Using Timers and Counters
nanoLC provides up to 32 Timer/Counter type data items for use in the project. Selecting 
the format of the Timer/Counter determines whether it operates as a timer or counter.
5.3.1
Timer Items
Timers have a timing range of 0 to 
99:59:59 or 99999.999
. Each timer is actually a 
collection of related variables, organized in a structure that is accessible in various project 
tools. Timer variables include the Accumulator (timer value), Preset Value, Timer Done 
status bit, and Timer Enabled status bit. The Data Item Editor permits specification of a 
preset value.
Ways in which project components can interact with a timer include:
A Control block can start, stop, reset, or restart a timer.
A Decision block can use a Boolean expression to check to see if the timer is done or 
not done; running or not running
A Compare block can compare the timer accumulator with another value.
A Move block can move a value to the timer preset.
Whenever used or enabled for the first time, a timer data item must have the following 
specified:
Duration with units of HH:SS (hours and seconds)
Duration with units of msec (seconds and msec)
In Control blocks, the following actions on a timer are possible:
Restart
Start
Stop
Reset
Start
A Timer Start causes the timer’s accumulator to begin timing.
Table 5-2
Valid Current Date, Day, Time Comparisons
Compare
Compare to Subtype
Current Date
Date
Current Time
Time of Day
Current Day of Week
Day of Week
Integer
Current Day of Month
Current Day of Year