Additional information on SMS
B.4 SMS commands
LOGO! CMR2020, LOGO! CMR2040
Operating Instructions, 10/2016, C79000-G8976-C356-03
169
Reading the current value from the BM variables memory: Read "current values"
Return values
Current value or error message: SMS error messages (Page 165)
•
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>
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.
•
BIT, 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!
All values are processed by the CMR as signed values.
Access
Writing, password (when configured)
Structure and key-
word
•
<password>;LOGO=VM<address>,<value>,<data type>
•
<Password>;LOGO=VM<Address>,<Constant name>
•
<Password>;LOGO=<signal name>,<value>
•
<Password>;LOGO=<signal name>,<constant name>
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
•
<password>;OUTPUT=O<1/2>,<1/0>
•
<Password>;OUTPUT=<signal name>,<1/0>
•
<Password>;OUTPUT=<signal name>,<constant name>
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
Страница 8: ...Preface LOGO CMR2020 LOGO CMR2040 8 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 12: ...Table of contents LOGO CMR2020 LOGO CMR2040 12 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 140: ...Dimension drawings LOGO CMR2020 LOGO CMR2040 140 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 144: ...Technical specifications LOGO CMR2020 LOGO CMR2040 144 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 154: ...Approvals LOGO CMR2020 LOGO CMR2040 154 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 159: ...Accessories A 2 Antenna cable LOGO CMR2020 LOGO CMR2040 Operating Instructions 10 2016 C79000 G8976 C356 03 159 ...
Страница 162: ...Accessories A 5 SD card LOGO CMR2020 LOGO CMR2040 162 Operating Instructions 10 2016 C79000 G8976 C356 03 ...
Страница 176: ...Documentation references 0 2 LOGO CMR2020 LOGO CMR2040 176 Operating Instructions 10 2016 C79000 G8976 C356 03 ...