Language; Instruction List (Il) - SMB MAT-LC-C Series User Manual

Plc based motion controller
Table of Contents

Advertisement

• PLC browser for controller monitoring.
• Tools, related to the target system, call external tool programs inside and outside CODESYS.
Library file
A series of library files can be included in the project file, and the POUs, data types, and global
variables of the library files can be used like custom variables. The standard.lib and util.lib in the
library file are program units that can be called freely.
Type of data
With reference to standard data types, users can define their own data types, and can create
structure enumeration types and reference types.
Visual interface
CODESYS provides a visual interface, so the variables of the project can be displayed. With the
help of the visualization, the geometry can be drawn offline. In the online mode, their shape,
color and text output can be changed according to the value of specific variables.
The visual interface can be used as a PLC utility operator interface for HMI with CODESYS, or
as a web page or target system display, visualized directly via the Internet or PLC.
6.2

Language

CODESYS provides corresponding editors that support all programming languages specified in
the IEC_61131 standard:
• Languages in text form: Instruction List (IL), Structured Text (ST)
• Graphical languages: Sequential Function Chart (SFC), Function Block Diagram (FBD),
Ladder Diagram (LD), Continuous Function Chart (CFC) based on Function Block Diagram
6.2.1

Instruction List (IL)

The instruction list contains a series of instructions, depending on the type of operation, each
instruction starts on a new line and contains an operation symbol and one or more operands
separated by commas. In front of an instruction, there can also be a label followed by a colon.
The comment section is at the end of a line, and blank lines can be inserted between
instructions.
The following operators and qualifiers will be used in the instruction list:
Qualifier:
C is used in conjunction with operators JMP, CAL, RET: This instruction is only executed when
the result of processing the preceding expression is TRUE.
N is used in conjunction with operators JMPC, CALC, RETC: this instruction is only executed
when the result of processing the preceding expression is FALSE.
N is used in other cases: negates the operand (excluding the accumulator).
Here are the operators and their possible qualifiers and their associated meanings:
54

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MAT-LC-C Series and is the answer not in the manual?

This manual is also suitable for:

Mat-lc-c0 seriesMat-lc-c06Mat-lc-c07

Table of Contents