Structured Text - Mitsubishi Electric M800VW Series Programming Manual

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
5 Languages Used in Sequence Programs

5.2 Structured Text

5.2 Structured Text
Structured text is a programming language that have the similar structure to control syntax.
Syntaxes such as condition determination or repetitions can be written.
This language is suitable to program complex processes that is difficult to be programed in a graphic language (ladder
diagram language).
 Basic format
intV2 := ABS(intV1);
IF M1 THEN
btn01 := TRUE;
ELSE
btn01 := FALSE;
END_IF;
Output_ENO := ENEG(btn01, Input1);
LadderFBInstance(Input1 := bool1, Input2 := bool1, Input3 := bool3);
(* user function block *)
Programing with Structured Text consists of operators and sentences.
";" is always put at the end of sentences.
intV1:=0;
intV2:=2;
Space, tab, or line feed can be inserted in any place between a keyword and identifier.
intV1 := 0;
intV2:=
2;
Comments can be inserted in a program,
Put "(*" before a comment and "*)" after the comment.
intV1:=0;
(*Substitution*)
intV2:=2;
Comments cannot be inserted in a comment. (A compile error occurs.)
(* Flag_A = TRUE start operation *) FLAG_A = FALSE stop operation *)
(* START (* pause process *) restart complete *)
 Description of Structured Text in this manual
 For the instructions supported by Structured Text, refer to "6.1 Instruction List".
 For available devices for each instruction, refer to the list "Usable device" on the page for each instruction "7 Basic Instruc-
tions", "8 Function Instructions".
 For structures of each instructions, refer to "MELSEC iQ-R Programming Manual (CPU Module Instructions, Standard
Functions/Function Blocks)".
59
Assignment
statements
Syntax
Calling a function
Calling a function block
Comment
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents