Home
Mitsubishi Electric
Controller
R16MTCPU
Programming Manual
Page 277
Mitsubishi Electric R16MTCPU - Page 277
354 pages
Manual
To Next Page
To Next Page
To Previous Page
To Previous Page
Loading...
4 OPERA
TION CONTROL PROGRAMS
4.19 Other Instructions
275
4
Program example
■
2 words from #0 are written to buffer memory
address 0H of the intelligent function module
(First I/O No.: 010H) on the RIO a
xis 603 of the SSCNET
/H head module
RTO K603, H01, H0, #0, K2, M10
100
#0
200
#1
0H
1H
100
200
Device memory
SSCNET
µ
/H head module (RIO Axis No.603)
Intelligent function module
(First I/O No.: 010H)
Buffer memory
2 words
transfer
RST M10
RTO K603,H01,H0,#0,K2,M10
M10
[F10]
[G10]
276
278
Table of Contents
Main Page
Default Chapter
3
Safety Precautions
3
Conditions of Use for the Product
11
Introduction
11
Table of Contents
12
Relevant Manuals
17
Terms
18
Manual Page Organization
19
Chapter 1 Overview
21
Performance Specifications
21
Motion SFC Performance Specifications
21
Operation Control/Transition Control Specifications
22
Structure of the Motion CPU Program
30
Chapter 2 Motion Dedicated Plc Instruction
31
Outline of Motion Dedicated PLC Instruction
31
Motion Dedicated PLC Instruction
32
Motion SFC Start Request from the PLC CPU to the Motion CPU: M(P).SFCS/D(P).SFCS
33
Servo Program Start Request from the PLC CPU to the Motion CPU: M(P).SVST/D(P).SVST
36
Direct Positioning Start Instruction from the PLC CPU to the Motion CPU: M(P).SVSTD/D(P).SVSTD
41
Current Value Change Instruction from the PLC CPU to the Motion CPU: M(P).CHGA/D(P).CHGA
53
M(P).Chgas/D(P).Chgas
57
Speed Change Instruction from the PLC CPU to the Motion CPU: M(P).CHGV/D(P).CHGV
61
Speed Change Instruction of Command Generation Axis from the PLC CPU to the Motion CPU: M(P).CHGVS/D(P).CHGVS
66
Torque Limit Value Change Request Instruction from the PLC CPU to the Motion CPU: M(P).CHGT/D(P).CHGT
71
Machine Program Operation Start Request from the PLC CPU to the Motion CPU: M(P).MCNST/D(P).MCNST
74
Write Bit Device to the Motion CPU: M(P).BITWR/D(P).BITWR
78
Interrupt Instruction to the Other CPU: M(P).GINT/D(P).GINT
81
Precautions
84
CPU Buffer Memory Address Used in Motion Dedicated Instruction
84
Number of Blocks Used for Motion Dedicated PLC Instruction
86
Execution of Motion Dedicated PLC Instruction
90
Complete Status Information
91
Order of Instruction Execution
92
Chapter 3 Motion Sfc Programs
94
Motion SFC Program Configuration
94
Motion SFC Chart Symbol List
95
Branch and Coupling Chart List
97
Motion SFC Program Name
100
Steps
101
Motion Control Step
101
Operation Control Step
102
Subroutine Call/Start Step
103
Clear Step
104
Transitions
105
Jump, Pointer
107
End
108
Branches, Couplings
109
Series Transition
109
Selective Branch, Selective Coupling
110
Parallel Branch, Parallel Coupling
111
Y/N Transitions
113
Motion SFC Comments
117
Chapter 4 Operation Control Programs
119
Operation Control Programs
119
Device Descriptions
124
Constant Descriptions
127
Labels
128
Types
128
Data Types
128
Arrays
129
Structures
130
Precautions
132
Binary Operations
133
Substitution
133
Addition
135
Subtraction
136
Multiplication
137
Division
138
Remainder
139
Bit Operations
140
Bit Inversion (Complement)
140
Bit Logical and
141
Bit Logical or
142
Bit Exclusive Logical or
143
Bit Right Shift
144
Bit Left Shift
145
Sign Inversion (Complement of 2)
146
Standard Functions
147
Sine: sin
147
Cosine: COS
148
Tangent: tan
149
Arcsine: ASIN
150
Arccosine: ACOS
151
Arctangent: ATAN
152
Square Root: SQRT
153
Natural Logarithm: LN
154
Exponential Operation: EXP
155
Absolute Value: ABS
156
Round-Off: RND
157
Round-Down: FIX
158
Round-Up: FUP
159
BCD -> bin Conversion: bin
160
BIN -> BCD Conversion: BCD
161
Data Control
162
16-Bit Integer Type Scaling: SCL
162
32-Bit Integer Type Scaling: DSCL
166
Type Conversions
169
Signed 16-Bit Integer Value Conversion: SHORT
169
Unsigned 16-Bit Integer Value Conversion: USHORT
170
Signed 32-Bit Integer Value Conversion: LONG
172
Unsigned 32-Bit Integer Value Conversion: ULONG
173
Signed 64-Bit Floating-Point Value Conversion: FLOAT
175
Unsigned 64-Bit Floating-Point Value Conversion: UFLOAT
176
Floating-Point Value Conversion 32-Bit into 64-Bit: DFLT
177
Floating-Point Value Conversion 64-Bit into 32-Bit: SFLT
178
Bit Device Statuses
179
ON (Normally Open Contact): (None)
179
OFF (Normally Closed Contact)
180
Bit Device Controls
181
Device Set: SET
181
Device Reset: RST
182
Device Output: DOUT
183
Device Input: DIN
184
Bit Device Output: out
185
Logical Operations
186
Logical Acknowledgement: (None)
186
Logical Negation
187
Logical and
188
Logical or
189
Comparison Operations
190
Equal to
190
Not Equal to
191
Less than
192
Less than or Equal to
193
More than
194
More than or Equal to
195
Program Control
196
Conditional Branch Control: if - else - IEND
196
Selective Branch Control: SELECT - CASE - SEND
198
Repeat Control with Specified Count: for - NEXT
200
Forced Termination of Repeat Control: BREAK
202
Motion-Dedicated Functions
203
Speed Change Request: CHGV
203
Command Generation Axis Speed Change Request: CHGVS
207
Torque Limit Value Change Request: CHGT
211
Target Position Change Request: CHGP
213
Machine Program Operation Start Request: MCNST
221
Advanced Synchronous Control Dedicated Function
223
Cam Data Read: CAMRD
223
Cam Data Write: CAMWR
228
Cam Auto-Generation: CAMMK
232
Cam Position Calculation: CAMPSCL
244
Vision System Dedicated Function
247
Open Line: MVOPEN
247
Load a Program: MVLOAD
248
Send an Image Acquisition Trigger: MVTRG
249
Start a Program: MVPST
250
Input Data: MVIN
252
Output Data: MVOUT
254
Reset a Status Storage Device: MVFIN
256
Close Line: MVCLOSE
257
Send a Command for Native Mode: MVCOM
258
Add-On Dedicated Function
261
Call Add-On Module: MCFUN
261
Other Instructions
263
Event Task Enable: EI
263
Event Task Disable: DI
264
No Operation: NOP
265
Block Transfer: BMOV
266
Same Data Block Transfer: FMOV
268
Write Device Data to Buffer Memory: to
270
Read Device Data from Buffer Memory: from
272
Write Buffer Memory Data to Head Module: RTO
275
Read Buffer Memory Data from Head Module: RFROM
278
Time to Wait: TIME
281
Comment Statement
283
Chapter 5 Transition Programs
284
Transition Programs
284
Chapter 6 Operation for Motion Sfc and Parameter
286
Task Definitions
286
Number of Consecutive Transitions and Task Operation
286
Number of Consecutive Transitions
286
Task Operation
287
Execution Status of the Multiple Task
290
How to Start the Motion SFC Program
292
Automatic Start
292
Start from the Motion SFC Program
292
Start from the Motion Dedicated PLC Instruction of Other CPU (PLC Instruction: M(P).SFCS/D(P).SFCS)
292
How to End the Motion SFC Program
293
How to Change from One Motion SFC Program to Another
293
Operation Performed at Multiple CPU System Power-Off or Reset
293
Task Parameters
294
Program Parameters
296
Task and Interrupt Processing
300
Chapter 7 Motion Sfc Functions
302
Online Change in the Motion SFC Program
302
Operating Method for the Online Change
303
Reading/Writing of Program
306
Motion SFC Program Monitor and Debug Mode
308
Motion SFC Program Monitor
308
Debug Mode
308
Appendices
309
Appendix 1 Processing Times
309
Processing Time of Operation Control/Transition Instruction
309
Processing Time of Advanced Synchronous Control Dedicated Functions
333
Deploying Time for Cam Data
335
Processing Time of Motion Dedicated PLC Instruction
336
Appendix 2 Sample Program
337
Motion Control Example by Motion SFC Program
337
Continuation Execution Example at the Subroutine Re-Start by the Motion SFC Program
344
Continuation Execution Example after the Stop by the Motion SFC Program
347
Revisions
350
Warranty
351
Trademarks
352
Other manuals for Mitsubishi Electric R16MTCPU
User Manual
90 pages
Related product manuals
MELSEC iQ-R16MTCPU
460 pages
Mitsubishi Electric R56TB
254 pages
Mitsubishi Electric RX42C4
40 pages
Mitsubishi Electric RD77MS4
644 pages
Mitsubishi Electric RD77GF8
186 pages
Mitsubishi Electric RD62P2E
92 pages
Mitsubishi Electric RV-8CRL
128 pages
Mitsubishi Electric RD77MS16
644 pages
Mitsubishi Electric R64MTCPU
90 pages
Mitsubishi Electric QJ71C24N-R4
442 pages
MELSEC iQ-R04CPU
416 pages
MELSEC iQ-R Series
760 pages