C Control The I Unit-M Advanced 5 Vdc Inputs / outputs 16 x digital I/Os / 8 x analogue or digital I/Os Program memory 2 198805 Ficha De Dados
Códigos do produto
198805
Syntax: Beep Tone, duration,
pause
BEEP 10,100,20
Tone
The Tone audio frequency has to be defined. The value may be inthe range from 1 to app. 60. Values higher
than 100 are possible but don't cause much difference in frequency.
Duration
Duration in 20ms steps duration in ms * 20
Pause
Pause after the tone in 20ms steps
RTC
Real Time Clock (RTC) provides the user with the system time. The RTC can be manually set or, if a DCF77
receiver is connected to FREQ1 Port it will be set to current time automatically. All Values are byte values.
The "YEAR" property requests/sets the year from the realtime clock
The "MONTH" property requests/sets the month from the realtime clock
The "DAY" property requests/sets the day of the month from the realtime clock
The "DOW" property requests/sets the day of the week from the realtime clock (value 1 to 7, 1 is monday)
The "HOUR" property requests/sets the hour from the realtime clock
The "MINUTE" property requests/sets the minute from the realtime clock
The "SECOND" property requests/sets the second from the realtime clock
receiver is connected to FREQ1 Port it will be set to current time automatically. All Values are byte values.
The "YEAR" property requests/sets the year from the realtime clock
The "MONTH" property requests/sets the month from the realtime clock
The "DAY" property requests/sets the day of the month from the realtime clock
The "DOW" property requests/sets the day of the week from the realtime clock (value 1 to 7, 1 is monday)
The "HOUR" property requests/sets the hour from the realtime clock
The "MINUTE" property requests/sets the minute from the realtime clock
The "SECOND" property requests/sets the second from the realtime clock
IF SECOND = 10 THEN GOTO X
Example for request second
SECOND = 0
Example for set timer
TIMER
The Timer can be considered as system variable, containing the 20 ms Timer value. The timer runs up to
32767 and stops if this value is reached. The timer can be written i.e. it can be preset to a certain value or
cleared. The timer also can be used to generate 20ms interrupts. The Timer content is a word value.
32767 and stops if this value is reached. The timer can be written i.e. it can be preset to a certain value or
cleared. The timer also can be used to generate 20ms interrupts. The Timer content is a word value.
IF TIMER = 10000 THEN GOTO X
MyWord=TIMER/100
Example for request timer
TIMER = 0
Example for set timer
FREQ1 and FREQ2
The primary operation is frequency counting in the range from 0 to 32kHz. FREQ 1 supports the feature to
synchronize the system clock if a DCF77 receiver module is connected to this port. This ports may be used
alternatively in Event counting mode. FREQ values are word values.
The trigger is negative edge level sensitive for all modes.
synchronize the system clock if a DCF77 receiver module is connected to this port. This ports may be used
alternatively in Event counting mode. FREQ values are word values.
The trigger is negative edge level sensitive for all modes.
FREQUENCY COUNTING
In mode Frequency counting FREQ is a read only word value, containing the measured Frequency in 1Hz
units. Counting is done at 1s gate time. For lower frequencies it may be suitable to measure events within a
certain time instead
units. Counting is done at 1s gate time. For lower frequencies it may be suitable to measure events within a
certain time instead
11