6
. AD51 PROGRAMMING NOTES
.........................................
6-1
-
6-10
6.1 BASIC Program Address Data
...............................................
6.1
. .
6.2 Start Cond~tlons
.........................................................
6.3
6.2.1 Program runsonce after power on
......................................
6.3
6.2.2 Program runscontinuously after power on
...............................
6-3
6.2.3 Program runsafter an interrupt signal from the PC CPU
.....................
6-4
6.2.4 Program runs
at
preset intervals in real time
..............................
6-4
6.3 Noteson the Use of BASIC Commands
........................................
6.5
6.3.1 Key input commands
...............................................
6.5
6.3.2 Printingcommands
.................................................
6.5
6.3.3 CRT display commands
..............................................
6.7
.........................................
6.3.4 OPEN and CLOSE commands 6.8
......................................................
6.3.5 Zcommands 6-8
...................................................6.4
AD51
and PC CPU Reset 6.9
.............................................
)
6.5 Noteson BASIC Programming 6-10
7
.
COMMUNICATION WITH PROGRAMMABLE CONTROLLER CPU
.............
7-1
-
7-31
7.1 General-Purpose
110
ReadIWrite
.............................................
7-1
7.1
.
1 General-purpose
110
address
..........................................
7.2
7.1.2 Write togeneral-purposeinput
........................................
7.3
7.1.3 Read from general-purposeoutput
.....................................
7-5
7.2 ReadIWrite of Buffer Memory............................................... 7.6
7.2.1 Readlwritewith BASIC program
....................................... 7.6
.....................................
7.2.2 Readlwritewith sequence program 7.7
7.3 Device Memory ReadIWrite
.................................................
7.9
7.3.1 System subroutines and device ranges
...................................
7~9
7.3.2 BASIC program examples
...........................................
7.12
SADR
..........................................................
7-12
SADW .......................................................... 7-14
SADT .......................................................... 7~16
.........................................................
SADMO 7-19
.........................................................
SADMl 7-20
7.4 Interrupt from PC CPU to
AD51
............................................
7-22
7.5 Interrupt from AD51 to PC CPU
............................................
7.23
7.6 ReadIWrite of Sequence Program and TIC Set Values
............................
7-24
7.6.1 System subroutines and functions
.....................................
7-24
7.6.2 Read and write procedure ........................................... 7-26
7.6.3 BASIC program examples
...........................................
7-27
SAAR, SAPR
....................................................
7-27
SAPW, SAPS, SAAW
...............................................
7.28
7.7 Remote RUNISTOP of PC CPU
............................................
7-30