Additional information on SMS
B.4 SMS commands
LOGO! CMR2020, LOGO! CMR2040
168
Operating Instructions, 10/2016, C79000-G8976-C356-03
Configure address of an NTP server
Function
Configuring address of an NTP server.
You can configure the address of an NTP server only if NTP was selected as the time-of-day syn-
chronization method.
<address> can either be the IP address in the format 123.123.123.123 or the name of the NTP
server in URL format, e.g. http://www.ntpservername.de.
Access
Writing, password (when configured)
Structure and key-
word
<password>;NTPSERVER="<address>"
Return values
OK (optional) or error message: SMS error messages (Page 165)
Example
1st example:
Send SMS message: Password;NTPSERVER="http://www.ntpservername.de"
Reply SMS message: NTPSERVER=http://www.ntpservername.de:OK
2nd example:
Send SMS message: Password;NTPSERVER="217.13.75.19"
Reply SMS message: NTPSERVER=217.13.75.19:OK
Note
Direct access to BM variables memory
For security reasons the address in theVM memory can only be read or written using SMS if
the address was created earlier as a signal using the WBM.
The commands "Set or read value in the BM variable memory" access the variable memory
of the BM directly.
When using these commands, remember the points made in the section Overview
(Page 47).
Reading the current value from the BM variables memory: Read "current values"
Function
Reading the current value from the BM variables memory.
You obtain the address from the BM variables memory. The value <data type> corresponds to BIT,
BYTE, WORD or DWORD.
Only the first 128 bytes of the BM variable memory can be read and written to.
Start addresses of the data types:
•
BIT / BYTE: 0 ... 127
•
WORD: 0 ... 126
•
DWORD: 0 ... 124
You can read any value from the BM variables memory. If you know the LOGO! control program
precisely, this can, for example, be useful for diagnostics purposes.
Access
Reading, no password necessary
Structure and key-
word
•
LOGO?VM<address>,<data type>
•
LOGO?<Signal name>