Sign In
Upload
Manuals
Brands
Mitsubishi Manuals
Controller
MELSEC-l
Mitsubishi MELSEC-l Manuals
Manuals and User Guides for Mitsubishi MELSEC-l. We have
1
Mitsubishi MELSEC-l manual available for free PDF download: Programming Manual
Mitsubishi MELSEC-l Programming Manual (298 pages)
melsec q series; melsec l series
Brand:
Mitsubishi
| Category:
Controller
| Size: 4.4 MB
Table of Contents
Safety Precautions
3
Conditions of Use for the Product
4
Revisions
5
Table of Contents
6
About Manuals
14
How to Use this Manual
15
Abbreviations and Generic Terms in this Manual
16
1 Overview
18
What Is the ST Language
18
Features of ST Program in MELSEC-Q/L Series
20
ST Program Creating Procedure
21
2 System Configuration
22
Applicable Cpus
22
Programming Tool for ST Program
22
ST Program Specifications
22
3 Handling of Characters and Numeric Values in St Programs
25
Usable Characters
25
Data Handling
27
Data Types
27
About any Type
28
Array and Structure
29
Data Representation Methods
32
Constants
32
Labels
35
Devices
38
4 St Program Expressions
41
Assignment Statement
41
Operators
42
Operator List
42
Examples of Using the Operators
44
Control Syntaxes
46
Control Syntax List
46
Conditional Statements
47
Repeat Statement
55
Other Control Syntaxes
60
Precautions for Use of Control Syntaxes
62
Call of Function Block
69
Comment
72
5 Melsec Functions
74
How the Functions Are Described
74
Output
77
Output to Device
77
Low-Speed Timer
77
High-Speed Timer
78
Counter
78
Set of Device
79
Reset of Device
79
Conversion of Direct Output into Pulse
80
1-Bit Shift
81
1-Bit Shift of Device
81
Termination
82
Stop
82
Comparison Operation
83
Block Data Comparison (=)
83
Block Data Comparison (>)
84
Block Data Comparison (<)
85
Arithmetic Operation
86
Addition of BCD 4-Digit Data (2 Devices)
86
Addition of BCD 4-Digit Data (3 Devices)
86
Subtraction of BCD 4-Digit Data (2 Devices)
87
Subtraction of BCD 4-Digit Data (3 Devices)
87
Addition of BCD 8-Digit Data (2 Devices)
88
Addition of BCD 8-Digit Data (3 Devices)
88
Subtraction of BCD 8-Digit Data (2 Devices)
89
Subtraction of BCD 8-Digit Data (3 Devices)
89
Multiplication of BCD 4-Digit Data
90
Division of BCD 4-Digit Data
90
Multiplication of BCD 8-Digit Data
91
Division of BCD 8-Digit Data
91
Character String Data Connection (2 Devices)
92
Character String Data Connection (3 Devices)
92
BIN Block Addition
93
BIN Block Subtraction
93
Increment
94
Decrement
94
32-Bit bin Increment
95
32-Bit bin Decrement
95
Data Conversion
96
BIN BCD Conversion
96
BCD bin Conversion
97
32-Bit BCD bin Conversion
97
Floating-Point bin Conversion
98
32-Bit Floating-Point bin Conversion
98
BIN Floating-Point Conversion
99
32-Bit bin Floating-Point Conversion
99
16-Bit bin 32-Bit bin Conversion
100
32-Bit bin 16-Bit bin Conversion
100
BIN Gray Code Conversion
101
32-Bit bin Gray Code Conversion
101
Gray Code bin Conversion
102
32-Bit Gray Code bin Conversion
102
Complement of 2 of 16-Bit bin
103
Complement of 2 of Floating-Point
104
Block bin BCD Conversion
104
Block BCD bin Conversion
105
Data Transfer
106
16-Bit Data NOT Transfer
106
Block Transfer
107
Same Data Block Transfer
107
16-Bit Data Exchange
108
Block Data Exchange
109
First/Last Byte Exchange
109
Program Execution Control
110
Interrupt Disable
110
Interrupt Enable
110
I/O Refresh
111
Logical Operation Commands
112
Logical Product (2 Devices)
112
Logical Product (3 Devices)
112
32-Bit Data Logical Product (2 Devices)
113
32-Bit Data Logical Product (3 Devices)
113
Block Data Logical Product
114
Logical Sum (2 Devices)
114
Logical Sum (3 Devices)
115
32-Bit Data Logical Sum (2 Devices)
115
32-Bit Data Logical Sum (3 Devices)
116
Block Data Logical Sum
116
Exclusive or (2 Devices)
117
Exclusive or (3 Devices)
117
32-Bit Data Exclusive or (2 Devices)
118
32-Bit Data Exclusive or (3 Devices)
118
Block Data Exclusive or
119
NOT Exclusive or (2 Devices)
119
NOT Exclusive or (3 Devices)
120
32-Bit Data NOT Exclusive or (2 Devices)
120
32-Bit Data NOT Exclusive or (3 Devices)
121
Block Data NOT Exclusive or
121
Rotation
122
Right Rotation (Carry Flag Not Included)
122
Right Rotation (Carry Flag Included)
122
Left Rotation (Carry Flag Not Included)
123
Left Rotation (Carry Flag Included)
123
32-Bit Data Right Rotation (Carry Flag Not Included)
124
32-Bit Data Right Rotation (Carry Flag Included)
124
32-Bit Data Left Rotation (Carry Flag Not Included)
125
32-Bit Data Left Rotation (Carry Flag Included)
125
Shift
126
N-Bit Right Shift
126
N-Bit Left Shift
126
N-Bit Data 1-Bit Right Shift
127
N-Bit Data 1-Bit Left Shift
127
1-Word Right Shift
128
1-Word Left Shift
128
Bit Processing
129
Bit Set of Word Device
129
Bit Reset of Word Device
129
Bit Test of Word Device
130
Bit Test of 32-Bit Data
130
Bit Device Batch Reset
131
Data Processing
132
Data Search
132
32-Bit Data Search
132
Bit Check
133
32-Bit Data Bit Check
133
Decode
134
Encode
134
7-Segment Decode
135
4-Bit Disconnection of 16-Bit Data
135
4-Bit Connection of 16-Bit Data
136
Bit Disconnection of any Data
136
Bit Connection of any Data
137
Byte Unit Data Disconnection
137
Byte Unit Data Connection
138
Data Maximum Value Retrieval
138
32-Bit Data Maximum Value Retrieval
139
Data Minimum Value Retrieval
139
32-Bit Data Minimum Value Retrieval
140
Data Sort
140
32-Bit Data Sort
141
Total Value Calculation
141
32-Bit Total Value Calculation
142
Structuring
143
Refresh
143
Buffer Memory Access
144
Intelligent Function Module 1-Word Data Read
144
Intelligent Function Module 2-Word Data Read
144
Intelligent Function Module 1-Word Data Write
145
Intelligent Function Module 2-Word Data Write
145
Character String Processing
146
Bin
146
32-Bit bin Decimal ASCII Conversion
146
Decimal ASCII bin Conversion
146
Hexadecimal ASCII bin Conversion
147
Hexadecimal ASCII 32-Bit bin Conversion
150
Decimal ASCII BCD 4-Digit Conversion
151
Decimal ASCII BCD 8-Digit Conversion
151
Device Comment Data Read
152
Character String Length Detection
152
Bin
153
32-Bit bin Character String Conversion
153
Character String bin Conversion
153
Character String 32-Bit bin Conversion
154
Floating-Point Character String Conversion
155
Character String Floating-Point Conversion
155
BIN ASCII Conversion
156
ASCII bin Conversion
156
Fetch from Character String Right Side
157
Fetch from Character String Left Side
157
Any Data Fetch in Character String
158
Any Data Replacement in Character String
158
Character String Search
159
Floating-Point BCD Decomposition
159
BCD Format Data Floating-Point
160
Special Functions
161
Floating-Point sin Operation
161
Floating-Point COS Operation
161
Floating-Point tan Operation
162
Floating-Point COS Operation
163
Floating-Point tan Operation
163
Floating-Point Square Root
165
Floating-Point Natural Exponential Operation
165
Floating-Point Natural Logarithm Operation
166
Random Number Generation
166
Sequence Change
167
BCD 4-Digit Square Root
167
BCD 8-Digit Square Root
168
BCD Type sin Operation
168
BCD Type COS Operation
169
BCD Type tan Operation
169
BCD Type sin Operation
170
BCD Type COS Operation
170
BCD Type tan Operation
171
Data Control
172
Upper/Lower Limit Control
172
32-Bit Data Upper/Lower Limit Control
173
Dead Band Control
174
32-Bit Data Dead Band Control
175
Bit Zone Control
176
32-Bit Data Bit Zone Control
177
File Register Block No. Switching
178
Set of File Register File
178
Set of Comment File
179
Clock
180
Read of Clock Data
180
Write of Clock Data
181
Addition of Clock Data
182
Subtraction of Clock Data
183
Clock Data Format Conversion (Hour, Minute, Second Second)
184
Clock Data Format Conversion (Second Hour, Minute, Second)
184
Program Control
185
Program Standby
185
Program Output off Standby
185
Program Scan Execution Registration
186
Program Low-Speed Execution Registration
186
Others
187
WDT Reset
187
6 Iec Functions
188
How the Functions Are Described
188
Type Conversion Functions
190
Boolean Type (BOOL) Double Precision Integer Type (DINT) Conversion
190
Double Precision Integer Type (DINT) Boolean Type (BOOL) Conversion
193
Double Precision Integer Type (DINT) Real Number Type (REAL) Conversion
195
Double Precision Integer Type (DINT) Character String Type
196
(STRING) Conversion
196
Integer Type (INT) Real Number Type (REAL) Conversion
199
Integer Type (INT) Character String Type (STRING) Conversion
200
Real Number Type (REAL) Double Precision Integer Type (DINT) Conversion
201
Real Number Type (REAL) Integer Type (INT) Conversion
202
Real Number Type (REAL) Character String Type (STRING) Conversion
203
Character String Type (STRING) Boolean Type (BOOL) Conversion
204
Character String Type (STRING) Double Precision Integer Type (DINT) Conversion
205
Character String Type (STRING) Integer Type (INT) Conversion
206
Character String Type (STRING) Real Number Type
207
Numerical Functions (General Functions)
208
Absolute Value
208
Square Root
209
Numeric Functions (Logarithm Functions)
210
Natural Logarithm
210
Natural Exponent
211
Numerical Functions (Trigonometric Functions)
212
Floating-Point sin Operation
212
Floating-Point COS Operation
213
Floating-Point tan Operation
214
Floating-Point sin Operation
215
Floating-Point COS Operation
216
Floating-Point tan Operation
217
Arithmetic Operation Functions
218
Addition
218
Multiplication
219
Subtraction
220
Division
221
Modulus Operation
222
Natural Exponential
223
Assignment
225
Bit Shift Functions
226
Bit Left Shift
226
Bit Right Shift
227
Right Rotation
228
Left Rotation
229
Bit Type Boolean Functions
230
Logical Product
230
Logical Sum
231
Exclusive Logical Sum
232
Logical NOT
233
Selection Functions
234
Binary Selection
234
Maximum Value
236
Minimum Value
238
Limiter
240
Multiplexer
242
Comparison Functions
244
Greater than Right Member ( > )
244
Greater than or Equal to Right Member ( >= )
246
Equal ( = )
248
Less than or Equal to Right Member ( <= )
250
Less than Right Member ( < )
252
Unequal ( <> )
254
Character String Functions
256
Character String Length Acquisition
256
Acquisition from Start Position of Character String
257
Acquisition from End of Character String
258
Acquisition from Specified Position of Character String
259
Concatenation of Character Strings
260
Insertion of Character String into Specified Position
261
Deletion of Character String from Specified Position
262
Replacement of Character String from Specified Position
263
Search for Character String from Specified Position
264
7 Error List
267
Appendices
282
Appendix 1 Character Strings that Cannot be Used as Labels and FB Names
283
Appendix 2 ST Instruction Table for GX Developer and GX Works2
284
Advertisement
Advertisement
Related Products
Mitsubishi MELSEC L Series
Mitsubishi MELSEC-L Series
Mitsubishi MELSEC-L60AD4
Mitsubishi MELSEC-Q EQ-V680D1
Mitsubishi MELSEC-Q/L
Mitsubishi MELSEC iQ-R series
Mitsubishi MELSEC-WS0-CPU1
Mitsubishi MELSEC-WS0-XTDI
Mitsubishi MELSEC Q Mode
Mitsubishi MELSEC QS Series
Mitsubishi Categories
Air Conditioner
Controller
Projector
Automobile
Engine
More Mitsubishi Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL