Siemens SIMATIC LOGO! CMR2020 Operating Instructions Manual page 125

Hide thumbs Also See for SIMATIC LOGO! CMR2020:
Table of Contents

Advertisement

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.
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-
LOGO?VM<address>,<data type>
word
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.
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
Structure and key-
<password>;LOGO=VM<address>,<value>,<data type>
word
Return values
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
Function
Setting the digital output 1 or 2 of the CMR to a value: 1 or 0.
Access
Writing, password required
Structure and key-
<password>;OUTPUT=O<1/2>,<1/0>
word
LOGO! CMR2020 / LOGO! CMR2040
Operating Instructions, 09/2014, C79000-G8976-C356-01
BYTE: 0 ... 127
WORD: 0 ... 126
DWORD: 0 ... 124
BYTE: 0 ... 127
WORD: 0 ... 126
DWORD: 0 ... 124
7.3 SMS message structures and examples
Operation
125

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic logo! cmr2040

Table of Contents