Operation 
  7.3 SMS message structures and examples 
LOGO! CMR2020 / LOGO! CMR2040  
Operating Instructions, 09/2014, C79000-G8976-C356-01 
125 
 
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> is BYTE, WORD or 
DWORD. 
Only the first 128 bytes of the BM variables memory can be read and written to. 
 
•  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. 
Reading, no password necessary 
LOGO?VM<address>,<data type>
 
Return values  Current value or error message: SMS error messages (Page 121) 
Structure of the returned value: VM<address>:<value>(<data type>) 
Output: Decimal output of the returned value 
Example  Send SMS message: LOGO?VM125,WORD 
Reply SMS message: VM125:1(WORD) 
 
 
Setting value in the BM variables memory: Write "current values" 
Function  Setting values of a component in the BM variables memory, e.g. inputs, outputs, flags. 
You obtain the address of the component from the BM variables memory. 
Only the first 128 bytes of the BM variables memory can be read and written to. 
 
•  BYTE: 0 ... 127 
•  WORD: 0 ... 126 
•  DWORD: 0 ... 124 
By setting a value in the BM variables memory, you can change the running of a LOGO! control 
program. 
Only use this command if you have precise knowledge of the control program! 
Access  Writing, password required 
<password>;LOGO=VM<address>,<value>,<data type>
 
Confirmation or error message: SMS error messages (Page 121) 
Example  Send SMS message: Password;LOGO=VM125,1,WORD 
Reply SMS message: LOGO=VM125,1,WORD: OK 
 
 
Set digital output of the CMR 
Setting the digital output 1 or 2 of the CMR to a value: 1 or 0. 
Writing, password required 
<password>;OUTPUT=O<1/2>,<1/0>