Brother International TD-4420TN FBPL Command Reference - Page 232
YEAR, 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 232 highlights
12.2 YEAR Description Write/read the year data via the Real Time Clock (RTC). Four-digit year format is supported by RTC. Syntax Write attribute: YEAR = 02 Read attribute: A = YEAR Range: 00~50 = 2000~2050; 51~99 = 1951~1999 Example Sample code DOWNLOAD "SetYear.BAS" REM *****Set Year Parameter to RTC***** YEAR=13 EOP SetYear Sample code DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 DIRECTION 1 CLS REM *****Read YEAR parameter from RTC***** YEAR$=STR$(YEAR) Y=YEAR REM *****Print***** TEXT 10,10, "3",0,1,1, "YEAR1="+YEAR$ TEXT 10,50, "3",0,1,1, "YEAR2="+STR$(Y) TEXT 10,90, "3",0,1,1, "YEAR3="+STR$(YEAR) PRINT 1 EOP DEMO Result See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND 227
227
12.2 YEAR
Description
Write/read the year data via the Real Time Clock (RTC). Four-digit year format is supported by RTC.
Syntax
Write attribute:
YEAR = 02
Read attribute:
A = YEAR
Range:
00
~
50
= 2000~2050;
51
~
99
= 1951~1999
Example
Sample code
DOWNLOAD "SetYear.BAS"
REM *****Set Year Parameter to RTC*****
YEAR=13
EOP
SetYear
Sample code
DOWNLOAD "DEMO.BAS"
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM *****Read YEAR parameter from RTC*****
YEAR$=STR$(YEAR)
Y=YEAR
REM *****Print*****
TEXT 10,10,
"
3",0,1,1,
"
YEAR1="+YEAR$
TEXT 10,50,
"
3",0,1,1,
"
YEAR2="+STR$(Y)
TEXT 10,90,
"
3",0,1,1,
"
YEAR3="+STR$(YEAR)
PRINT 1
EOP
DEMO
Result
See Also
~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND