Brother International TD-4750TNWB FBPL Command Reference - Page 238
SECOND, Description, Syntax, Example, See Also
View all Brother International TD-4750TNWB manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 238 highlights
12.8 SECOND Description Write/read the second data via the Real Time Clock (RTC). Two-digit (00~59) second format is supported by RTC. Syntax Write attribute: SECOND = 12 Read attribute: A = SECOND Range: 00~59 Example Sample code DOWNLOAD "SetSecond.BAS" REM *****Set Second Parameter to RTC***** SECOND=59 EOP SetSecond Sample code DOWNLOAD "DEMO.BAS " SIZE 4,1 GAP 0,0 DIRECTION 1 CLS REM *****Read Second parameter form RTC***** SECOND$=STR$(SECOND) SEC=SECOND REM *****Print***** TEXT 10,10, "3",0,1,1, "SECOND1="+SECOND$ TEXT 10,50, "3",0,1,1, "SECOND2="+STR$(SEC) TEXT 10,90, "3",0,1,1, "SECOND3="+STR$(SECOND) PRINT 1 EOP DEMO Result See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND 233
233
12.8 SECOND
Description
Write/read the second data via the Real Time Clock (RTC). Two-digit (
00
~
59
) second format is supported by
RTC.
Syntax
Write attribute:
SECOND = 12
Read attribute:
A = SECOND
Range:
00
~
59
Example
Sample code
DOWNLOAD "SetSecond.BAS"
REM *****Set Second Parameter to RTC*****
SECOND=59
EOP
SetSecond
Sample code
DOWNLOAD "DEMO.BAS
"
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM *****Read Second parameter form RTC*****
SECOND$=STR$(SECOND)
SEC=SECOND
REM *****Print*****
TEXT 10,10,
"
3",0,1,1,
"
SECOND1="+SECOND$
TEXT 10,50,
"
3",0,1,1,
"
SECOND2="+STR$(SEC)
TEXT 10,90,
"
3",0,1,1,
"
SECOND3="+STR$(SECOND)
PRINT 1
EOP
DEMO
Result
See Also
~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND