Sm Commands - Mitsubishi a2 Series Programming Manual

Simple application controller
Table of Contents

Advertisement

α
2 Simple Application Controllers

6.31.2 SM Commands

The commands included in a short message can be either for switching the bit output of a FB
or setting the value output.
Bit Output Mode / Word Output Mode
In bit output mode two commands texts can be set, one command text (cmd1) to switch the bit
output ON, and an optional command text (cmd2) to switch the bit output OFF.
In word output mode, the command text (cmd3) can be set as FB parameter.
Each command can consist of up to 32 characters.
In the transmitted SM the cmd3 must be followed by the equal character ('=') and a value, e.g.
cmd3=100.
The value can be positive and negative ('-') and must be in the range -32768...32767. Space
characters or the delimiter character can follow the value.
Mode
Bit Output
Word Output
In case the '=' character is not followed by the '-' or the '+' character or a number, the command
is invalid. Multi commands can be transmitted in one short message, but not more than 10. All
commands have to be separated by the delimiter '.' (dot). Blank characters directly before and
after the delimiter are disregarded. A terminating delimiter character is not needed.
In case a short message contains more than one command for one FB, e.g. switch bit output
ON and switch bit output OFF, the first command in the short message becomes active. In
case of setting the same command text for bit output ON and bit output OFF command and
including this command in a short message, the bit output is switched ON.
The following characters can be used to build a command.
Table 6.47.1: Command Characters (Former than Ver. 3.00)
Group
GSM 7 bit default alphabet
1
plus extension table
2
Unicode 16bit
Table 6.47.2: Command Characters (Ver. 3.00 or later)
Group
GSM 7 bit default alphabet
1
plus extension table
2
Unicode 16bit
Description
cmd1 for switch output ON
cmd2 for switch output OFF
cmd3
Code
<space> ! " # $ % & ' ( ) * + , - / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _
a b c d e f g h i j k l m n o p q r s t u v w x y z { | }
Ä Å Æ Ç Ñ Ö Ü à ä å æ è é ì ñ ò ö ù ü
` á â ç ê ë í î ï ó ô ú û
Code
<space> ! " # $ % & ' ( ) * + , - / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _
a b c d e f g h i j k l m n o p q r s t u v w x y z { | }
Ä Å Æ Ç Ñ Ö Ü à ä å æ è é ì ñ ò ö ù ü É ß ¡ ¿
° »
À Á Â Ã È Ê Ë Ì Í Î Ï Ò Ó Ô Õ Ù Ú Û ` á â ã ç ê ë í î ï ó ô õ ú û
FB parameter
SM text
cmd1
cmd1
cmd2
cmd2
cmd3
cmd3=value
Character
Character
Function Blocks 6
6 - 92

Advertisement

Table of Contents
loading

Table of Contents