PT630 Programming Reference Guide
Page 68 of 59
------------------------------------------------------------------------------------------------------------------
2.4.15 Set Date/Time ( ESC M )
Format:
⇒
STX ESC ‘M’<datetime> CS1 CS2 ADDR ;<datetime>=ASCII string
;
in
“yyyymmddhhmmss”
⇐
STX ESC’ M’ <retcode> CS1 CS2 ETX ;<retcode>= 00H success
;
01H error
⇒
ACK or NAK
Description: This command allows the host system to set PT630 real time clock. The parameter
<datetime> is an ASCII character string. The first four characters represent the year.
The next two characters represent the month. The fields after the month field
represent the day of the month, hour (24-hour format), minute, and second,
respectively. For
Example
, string “19900926234500” will set PT630 clock to
September 26, 1990. The time is 11:45 PM. The PT630 reconfigures the real time
clock chip as soon as the command has been successfully received.
2.4.16
Set Buzzer Volume (ESC N)
Format:
⇒
STX ESC ‘N’ <n> CS1 CS2 ADDR
; <n>=‘0’ low volume
; ‘5’ medium volume
; ‘9’ high volume
⇐
ACK or NAK
2.4.17 Change Password ( ESC P )
Format:
⇒
STX ESC ‘P’<password>CS1 CS2 ADDR ; <password> 10 characters
; maximum
⇐
STX ESC ‘P’ <retcode> CS1 CS2 ETX
; <retcode>=00H success
; 01H error
⇒
ACK or NAK
Description: The command changes the password for PT630 Supervisor Mode.
2.4.18
Get Terminal ID (ESC R)
Format:
⇒
STX ESC ‘R’ CS1 CS2 ADDR
⇐
STX ESC ‘R’ <ID> CS1 CS2 ETX
⇒
ACK or NAK
Description: <ID> is 8-characters fixed length string and its default value is “PT630”.