Sign In
Upload
Manuals
Brands
Mitsubishi Manuals
Controller
A1SD51S
Mitsubishi A1SD51S Manuals
Manuals and User Guides for Mitsubishi A1SD51S. We have
1
Mitsubishi A1SD51S manual available for free PDF download: Programming Manual
Mitsubishi A1SD51S 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
Advertisement
Related Products
Mitsubishi MELSEC A1SD71-S2
Mitsubishi A1SD71-S7
Mitsubishi MELSEC A1SD70
Mitsubishi A1SD75P1-S3
Mitsubishi A1SD75P2-S3
Mitsubishi A1SD75P3-S3
Mitsubishi A1SJ61QBT11
Mitsubishi MELSEC A1SCPU-S1
Mitsubishi MELSEC A1SX30
Mitsubishi MELSEC A1SY10
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