Mitsubishi QD51 Programming Manual page 5

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

3.1 Creating a Program................................................................................................................................. 3- 3
3.2 Executing and Editing a Program........................................................................................................... 3- 5
3.2.1 Executing a program ........................................................................................................................ 3- 5
3.2.2 If an error occurs .............................................................................................................................. 3- 5
3.2.3 Editing a program ............................................................................................................................. 3- 6
3.3 Saving and Loading a Program .............................................................................................................. 3-10
3.3.1 Memory cards used for AD51H-BASIC (AD51H-S3 only).............................................................. 3-10
3.3.2 Saving a program ............................................................................................................................. 3-11
3.3.3 Loading programs ............................................................................................................................ 3-15
3.4 Organizing Memory Cards and FDs....................................................................................................... 3-16
3.4.1 Displaying file names ....................................................................................................................... 3-16
3.4.2 Renaming files.................................................................................................................................. 3-18
3.4.3 Deleting files ..................................................................................................................................... 3-19
3.5 Specifying Data ....................................................................................................................................... 3-20
3.5.1 Assignment statements.................................................................................................................... 3-20
3.5.2 Preparing groups of data ................................................................................................................. 3-21
3.6 Jumps and Loops.................................................................................................................................... 3-23
3.6.1 Jump unconditionally........................................................................................................................ 3-23
3.6.2 Jump depending on a value............................................................................................................. 3-23
3.6.3 Loop for the number of times specified ........................................................................................... 3-24
3.6.4 Loop while a certain condition is met............................................................................................... 3-25
3.7 Letting BASIC Make Decisions............................................................................................................... 3-26
3.7.1 Condition specification ..................................................................................................................... 3-26
3.7.2 Judgment instructions ...................................................................................................................... 3-27
3.8 How to Use Arrays ................................................................................................................................. 3 -29
3.8.1 Number of dimensions in an array................................................................................................... 3-30
3.9 Using Subroutines................................................................................................................................... 3-31
3.10 Displaying Characters on the Screen................................................................................................... 3-32
3.10.1 Functions for displaying characters ............................................................................................... 3-33
3.10.2 Displaying characters to an arbitrary position ............................................................................... 3-35
3.11 Entering Data Using the Keyboard....................................................................................................... 3-37
3.12 Printing to the Printer ............................................................................................................................ 3-39
3.13 Character Processing ........................................................................................................................... 3-40
3.13.1 Types of characters........................................................................................................................ 3-40
3.13.2 Half-byte character unit processing ............................................................................................... 3-40
3.13.3 Processes in full-Byte character increments ................................................................................. 3-44
3.14 About Types of Numeric Relationships ................................................................................................ 3-46
3.15 Executing a Large Program by Dividing it up....................................................................................... 3-47
A - 4
3 - 1 to 3- 49
A - 4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents