Statements And Notes - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

5.3

Statements and Notes

Statements and notes can be used in ladder programs.
Statements
A statement is used to add a comment to a ladder block. Adding a comment makes it easy to understand the flow of
processing.
There are three types of statements: line statement, P statement, and I statement.
The line statement can be displayed in the tree of the navigation window.
■ Line statement
This type of statement adds a comment to the entire ladder block.
■ P statement
This type of statement adds a comment to a pointer number.
■ I statement
This type of statement adds a comment to an interrupt pointer number.
Notes
A note is used to add a comment to a coil and instruction in a program.
Adding a comment makes it easy to understand the contents of the coil and instruction.
Categories of statements and notes
Statements and notes are classified into two categories: "In PLC" and "In Peripheral".
Category
Type
In PLC
• Line statement
• P statement
• I statement
• Note
In Peripheral
• Line statement
• P statement
• I statement
• Note
5 LADDER DIAGRAM
58
5.3 Statements and Notes
Description
Statements and notes can be stored in a CPU module.
An In PLC Statement uses the following number of steps. (Assumed that only one-byte
characters are entered. Values after the decimal point are rounded up.)
• 2 + Number of characters  2 (steps)
Statements and notes cannot be stored in a CPU module. (Only position information is stored.)
Statements and notes need to be stored in a peripheral.
One line consumes one step.
A text that has been entered is automatically preceded by an asterisk "*".

Advertisement

Table of Contents
loading

Table of Contents