Sign In
Upload
Manuals
Brands
Mitsubishi Manuals
Controller
QD51
Mitsubishi QD51 Manuals
Manuals and User Guides for Mitsubishi QD51. We have
2
Mitsubishi QD51 manuals available for free PDF download: Programming Manual, User Manual
Mitsubishi QD51 Programming Manual (688 pages)
Logic Controller
Brand:
Mitsubishi
| Category:
Controller
| Size: 8 MB
Table of Contents
Safety Precautions
2
Revisions
3
Table of Contents
4
How to Use this Manual
14
Regarding Compiler BASIC
14
About Module Names
14
1 Overview
15
Features
16
Symbols Used in this Manual
17
2 The Basics of Ad51H-Basic
18
Preparation to Use AD51H-BASIC
18
Direct Mode and Program Mode
21
Line Format
21
Spaces and Keywords
22
Characters Used in BASIC
23
What Are Instructions and Functions
26
Constants
27
Character String Constants
27
Numeric Constants
27
Single-Precision and Double-Precision Numeric Constants
28
Variables
29
Variable Names and Type Declaration Characters
29
Array Variables
30
Special Variables (How to Use B@ and W@)
31
Type Conversion
34
Expressions and Operators
35
Arithmetic Operators
35
Relational Operators
37
Logical Operators
38
Character String Operations
40
Priority Order of Operations
41
3 Let's Create and Execute a Program
42
Creating a Program
44
Executing and Editing a Program
46
Executing a Program
46
If an Error Occurs
46
Editing a Program
47
Saving and Loading a Program
51
Memory Cards Used for AD51H-BASIC (AD51H-S3 Only)
51
Saving a Program
52
Loading Programs
56
Organizing Memory Cards and Fds
57
Displaying File Names
57
Renaming Files
59
Deleting Files
60
Specifying Data
61
Assignment Statements
61
Preparing Groups of Data
62
Jumps and Loops
64
Jump Unconditionally
64
Jump Depending on a Value
64
Loop for the Number of Times Specified
65
Loop While a Certain Condition Is Met
66
Letting BASIC Make Decisions
67
Condition Specification
67
Judgment Instructions
68
How to Use Arrays
70
Number of Dimensions in an Array
71
Using Subroutines
72
Displaying Characters on the Screen
73
Functions for Displaying Characters
74
Displaying Characters to an Arbitrary Position
76
Entering Data Using the Keyboard
78
Printing to the Printer
80
Character Processing
81
Types of Characters
81
Half-Byte Character Unit Processing
81
Processes in Full-Byte Character Increments
85
About Types of Numeric Relationships
87
Executing a Large Program by Dividing It up
88
4 The Exchange between the Plc and Buffer Memory
91
PLC Numeric Data and BASIC Numeric Data
91
The Exchange with the PLC
92
Control Tables
92
PLC Station Number
93
Choosing a Process
102
Bit/Word Designation
102
Device Number Designation
103
Storage Area for Reading and Writing Data
105
Communication with the Buffer Memory
110
5 Communication Using General-Purpose Input/Output
112
Communications Module PLC CPU (about Input Device X)
112
PLC CPU Communications Module (about Output Device Y)
115
6 O Processing of Data Files
119
File Numbers
120
Sequential File I/O Procedures
121
Random File I/O Procedures
125
Caution on Handling Data Files
130
Handling Data Files During Multitask Processing
130
Number of Data Files that Can be Handled by each Program
131
7 Communication with External Devices
132
Correspondence between the Interface and Channel Number
132
Preparation for the Communication
133
Communication Parameter Setting
133
Control Table
135
Communication Procedure with External Devices
137
Communication with a Console
137
Communication with a Terminal
139
Communicating with a Printer
141
Communication with Other External Devices
143
Interrupt Processing from External Devices
145
8 Multitask Processing
146
How to Synchronize the Execution (Event Control)
150
To Use Devices (Resources) in Multitasking (Mutual Exclusive Control of Resources)
153
Start Another Program from Within a Program
158
Exchanging Data between Tasks
159
Common Memory and Internal Devices
159
Message Ports
161
9 The Concept of Error Handling
165
Definition of Error Handling
165
How to Determine the Type of Error and the Location Where the Error Occurred
166
Precautions Regarding Error Handling
167
10 Program Debugging
168
Sequence of Debugging Programs Executed Simultaneously in Multitasking
168
Instructions Used When Debugging Programs
168
11 Instructions and Functions
171
ABS (Returns the Absolute Value )
172
ASC ( Returns the Character Code of the Starting Character)
174
ATN ( Returns Arc Tangent)
175
BEEP ( the Buzzer Sounds )
178
BSWAP ( Swaps Two Values in Byte Units)
181
CDBI ( Converts a Double Precision Real Number to a 32-Bit Integer)
184
CDBL ( Converts an Integer or a Single Precision Real Number to a Double Precision Real Number)
186
CHAIN ( Reads Program or Combine to Execute )
188
CIDB ( Converts a 32-Bit Integer into a Double Precision Real Number )
191
CINT ( Converts a Single Precision Real Number or a Double Precision Real Number into an Integer )
193
CISN ( Converts a 32-Bit Integer into a Single Precision Real Number)
195
CLEAR ( Initializes All Variables and Sets up the Memory Area )
197
CLOSE ( Terminates the I/O Processing of a File )
198
CLS ( Clears the Screen )
199
Com On/Off/Stop
200
COMMON ( Sets Variable and Others to be Passed to the Program to be Read )
201
CONSOLE ( Sets the Number of Display Lines of the Console Screen )
202
CONT ( Resumes the Program that was Stopped )
203
COS ( Returns a Cosine Value )
204
CSNG ( Converts an Integer or a Double Precision Real Number into a Single Precision Real Number )
205
CSNI ( Converts a Single Precision Real Number into a 32-Bit Integer )
206
CVD
208
A Double Precision Real Number )
208
CVDMBF ( Converts into the IEEE Format Double Precision Internal Expression )
209
CVI ( Converts a Character String, Which was Converted by the MKI$ Function, Back to an Integer )
210
Cvs
211
A Single Precision Real Number )
212
DATA ( Specifies Data to be Read by READ )
214
Defdbl
218
DEFFN ( Defines a User Function )
219
DEFINT ( Defines Variables that Start with a Character of the Specified Range as the Integer Type )
221
Defsng
222
DEFSTR ( Defines Variables that Start with a Character of the Specified Range as the Character Type )
223
DEF ZEVENT ( Defines an Event, and Defines an Event by Bit Device )
224
DELETE ( Deletes the Specified Range of the Program )
227
DIM ( Defines the Array )
228
END ( Terminates the Execution of the Program and Brings to the Input Wait State or the Idling State )
230
EOF ( End of a Sequential File Is Detected )
231
ERASE ( Deletes the Array from Memory )
232
ERL ( Returns the Line Number Where an Error was Detected )
233
ERR ( Returns the Error Code of the Detected Error )
234
ERROR ( Generates the Error of the Specified Error Code )
235
EXP ( Returns the Exponential Function Value )
236
FIELD ( Assigns the Area for the Specified Variable to the Random File Buffer )
237
FILES ( Displays the File Name )
238
FOR to NEXT ( Executes a Series of Instructions for the Specified Number of Times )
240
FORMAT ( Initializes the File Area of a Memory Card )
242
FRE ( Returns the Size of the Unused Area of Memory in Bytes )
244
GET ( Reads One Record from a Random File to the Random File Buffer )
245
GOSUB RETURN ( Branches to a Subroutine )
250
IF GOTO else ( Selects a Branch Destination According to the Result of an Expression )
254
IF then else ( Selects an Instruction According to the Result of the Expression )
256
INPUT ( Data Entry from the Keyboard )
260
Iput
262
INSTR ( Returns a Specified Character String in the Character String )
266
KEY ( Defines a Character String to a Function Key of the Console )
274
KEYLIST ( Displays the Character String Defined to the Function Key of the Console )
275
KILL ( Deletes a File )
276
Character String and Displays the First Location in Which It Is Found
278
KLEN ( Returns the Number of Characters of the Character String that Includes Full-Byte Characters )
280
Kmid
282
KMODE ( Performs Conversion Settings of Kanji Code )
284
Ktype
288
The Character String )
288
LEN ( Returns the Number of Characters of a Character String )
291
LET ( Assigns the Value of the Expression to a Variable )
292
LFILES ( Prints the Filenames to the Printer )
294
LINE INPUT ( Stores the Key Input into a Character String Variable )
296
LIST ( Displays the Program )
299
LLIST ( the Program will be Printed to the Printer )
300
LOAD ( Reads Programs )
301
LOC ( Returns the Current Logical Location Within a File )
302
LOCATE ( Specifies the Display Position on the Console Screen )
303
LOG ( Returns a Natural Logarithm Value )
306
LPRINT ( Outputs Data to the Printer )
307
LPRINT USING ( Outputs Data in the Specified Format to the Printer )
308
LSET ( Moves Data from Memory to the Random File Buffer and Stores Left-Justified )
309
MERGE ( Merges Programs in the Memory and a Read Program )
310
MID$ (Part 2)
314
Mkdmbf
317
Can be Converted to a Numeric Value Using the CVD Function )
317
Mksmbf
320
NAME ( Changes File Names )
322
NEW ( Erases All Programs in Memory and Initializes All Variables )
324
ON COM GOSUB ( Branches to Subroutine When an Interrupt Occurs from a Communication Line )
327
ON ERROR GOTO ( Branch to an Error Handling Routine if an Error Occurs )
332
ON GOSUB ( Branches to Subroutine Depending on the Value of the Specified Expression )
334
On Goto
336
Expression
336
Advertisement
Mitsubishi QD51 User Manual (160 pages)
Melesec Q Series
Brand:
Mitsubishi
| Category:
Controller
| Size: 2.5 MB
Table of Contents
Safety Precautions
3
Revisions
7
Table of Contents
8
About Manuals
11
How to Read this Manual, and Configuration
12
About the Generic Terms and Abbreviations
13
Meaning of Terms and Their Contents
15
Product Configuration
15
1 Overview
16
Operation Overview for QD51 (-R24)
17
Features of QD51 (-R24)
19
About the Function Added/Changed to the Function Version B
24
2 System Configuration and Usable Functions
25
Application Systems
25
For Use in Multiple CPU System
30
For Use with Redundant Cpus
31
For Use at MELSECNET/H Remote I/O Station
32
How to Confirm the Function Version
34
3 Specifications
36
Performance Specifications
36
Interface Specifications
38
Connector Specifications
38
Cable Specifications
39
RS-422/485 Interface Specifications
40
RS-422/485 Terminal Block Specifications
40
RS-422/485 Cable Specifications
41
Cautions During Data Communications with a RS-422/485 Line
42
List of Commands and Functions in AD51H-BASIC
45
QD51 (-R24) Internal Memory
51
Program Area
53
Buffer Memory
55
Common Memory
58
Expansion Register (ED0 to ED1023)
61
Special Register (ED9000 to ED9127)
66
Expansion Relay (EM0 to EM1023)
70
Special Relay (EM9000 to EM9127)
73
Receive Buffer
76
List of GX Developer Setting Items for the QD51 (-R24)
77
List of Input/Output Signals From/To the Programmable Controller CPU
78
Input (X) Detailed Explanation
80
Output (Y) Detailed Explanation
84
Relationship between the QD51 (-R24) Start Condition and the Flash ROM Execution Program Area
88
QD51 (-R24) Operation When the Power Is Turned on
89
In the Case of the Programming Mode
89
In the Case of the Multitask Debug Mode
90
In the Case of the Run Mode
91
Running a Task (a Created Program)
92
Conditions for Permitting Running of a Task and Start Conditions
92
Starting by Turning the Power on or by Reset (Start Condition: START)
93
Starting by an Interrupt from the Programmable Controller CPU (Start Condition: IT)
95
Starting by a Start Request from Another Task (Start Condition: BOOT, ON)
96
Running a BASIC Program by Multitask Processing
98
Multitask Processing
98
BASIC Program Priority Order (Priority)
99
Synchronizing Execution between BASIC Programs (Event Control)
100
Sharing Equipment (Resources) by Multitasking
101
4 About Qd51 (-R24) Functions
102
List of Functions
102
Communications with a Console / Terminal
104
Communications with a Terminal
107
Printing by a Printer
111
Printing from a Printer Connected to an Interface that Is Not Set in the Console
112
Printing from a Printer Connected to the Console
114
Communications with the External Device
115
If Data Are Being Sent
115
If Data Are Received
116
Communications with the Programmable Controller CPU
117
ON/OFF Data Communications by General Output (X/Y)
118
Reading and Writing Data From/To Buffer Memory
119
Reading and Writing Data From/To the Programmable Controller CPU
120
Reading and Writing Data From/To the Programmable Controller Cpu's Expansion File Register
121
Reading and Writing Data From/To the Buffer Memory of Another Intelligent Function Module/Special Function Module
122
Reading and Writing Clock Data
123
Data Communications between Tasks
124
ON/OFF Data Communications by Expansion Relay (EM)
124
Data Communications by Expansion Register (ED)
125
Data Communications by Common Memory
125
5 Settings and Procedures up until Operation
126
Handling Precautions
126
Names of Parts and Functions
128
Connection with a Console, Debugger
129
Connection with the External Device
130
Connecting to the RS-232 Interface
131
Connecting to the RS-422/485 Interface
133
Setting from the GX Developer
136
I/O Assignment Settings
136
Switch Setting for I/O and Intelligent Function Module
137
Intelligent Function Module Interrupt Point Settings
141
Maintenance, Checks
142
6 Exclusive Commands
143
Exclusive Command List and Available Devices
143
Z(P).Ycheck
144
7 Troubleshooting
145
About QD51 (-R24) Status Checks
145
Checking the LED Lighting Status, Communications Error Status and QD51 (-R24) Switch Setting Status
145
Errors that Occur in BASIC
147
Appendix
148
Appendix-1 Comparison of Functions with Previous Modules
148
Appendix-2 about Use of Programs from Previous Modules
149
Appendix 2.1 about Use of A1SD51S, AD51H-S3 Programs
149
Appendix-3 External Dimensions
153
Advertisement
Related Products
Mitsubishi QD51-R24
Mitsubishi Melsec-Q QD75P4
Mitsubishi Melsec-Q QD75D1
Mitsubishi Melsec-Q QD75P1
Mitsubishi Melsec-Q QD75D4
Mitsubishi Melsec-Q QD75D2
Mitsubishi QD75P1N
Mitsubishi QD75P2N
Mitsubishi QD75D4N
Mitsubishi QD62-H01
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