Brother International TD-4420TN FBPL Command Reference - Page 236
HOUR, Description, Syntax, Example, See Also
View all Brother International TD-4420TN manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 236 highlights
12.6 HOUR Description Write/read the hour data via the Real Time Clock (RTC). The 24-hour-day system (00~23) is supported by RTC. Syntax Write attribute: HOUR = 12 Read attribute: A = HOUR Range: 00~23 Example Sample code DOWNLOAD "SetHour.BAS" REM *****Set Hour Parameter to RTC***** HOUR=10 EOP SetHour Sample code DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 DIRECTION 1 CLS REM *****Read Hour parameter form RTC***** HOUR$=STR$(HOUR) H=HOUR REM *****Print***** TEXT 10,10, "3",0,1,1, "HOUR1="+HOUR$ TEXT 10,50, "3",0,1,1, "HOUR2="+STR$(H) TEXT 10,90, "3",0,1,1, "HOUR3="+STR$(HOUR) PRINT 1 EOP DEMO Result See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND 231
231
12.6 HOUR
Description
Write/read the hour data via the Real Time Clock (RTC). The 24-hour-day system (
00
~
23
) is supported by
RTC.
Syntax
Write attribute:
HOUR = 12
Read attribute:
A = HOUR
Range:
00
~
23
Example
Sample code
DOWNLOAD "SetHour.BAS"
REM *****Set Hour Parameter to RTC*****
HOUR=10
EOP
SetHour
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM *****Read Hour parameter form RTC*****
HOUR$=STR$(HOUR)
H=HOUR
REM *****Print*****
TEXT 10,10,
"
3",0,1,1,
"
HOUR1="+HOUR$
TEXT 10,50,
"
3",0,1,1,
"
HOUR2="+STR$(H)
TEXT 10,90,
"
3",0,1,1,
"
HOUR3="+STR$(HOUR)
PRINT 1
EOP
DEMO
Result
See Also
~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND