Siemens LOGO! CMR2040 Operating Instructions Manual page 169

Simatic net logo! - industrial ethernet
Hide thumbs Also See for LOGO! CMR2040:
Table of Contents

Advertisement

Reading the current value from the BM variables memory: Read "current values"
Return values
Current value or error message: SMS error messages (Page 165)
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!
All values are processed by the CMR as signed values.
Access
Writing, password (when configured)
Structure and key-
word
Return values
Confirmation (optional) or error message: SMS error messages (Page 165)
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 (when configured)
Structure and key-
word
Return values
OK (optional) or error message: SMS error messages (Page 165)
Example
Send SMS message: Password;OUTPUT=O1,1
Reply SMS message: OUTPUT=O1,1:OK
LOGO! CMR2020,
LOGO! CMR2040
Operating Instructions, 10/2016, C79000-G8976-C356-03
Structure of the returned value from the variable memory:VM<address>:<value>(<data type>)
Structure of the returned value from a signal:<signal name>:<value>
BIT, BYTE: 0 ... 127
WORD: 0 ... 126
DWORD: 0 ... 124
<password>;LOGO=VM<address>,<value>,<data type>
<Password>;LOGO=VM<Address>,<Constant name>
<Password>;LOGO=<signal name>,<value>
<Password>;LOGO=<signal name>,<constant name>
<password>;OUTPUT=O<1/2>,<1/0>
<Password>;OUTPUT=<signal name>,<1/0>
<Password>;OUTPUT=<signal name>,<constant name>
Additional information on SMS
B.4 SMS commands
169

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Logo! cmr2020Simatic net logo! cmr2020Simatic net logo! cmr20406gk7 142-7bx00-0ax06gk7 142-7ex00-0ax0

Table of Contents