1 - 2 1 - 2
MELSEC-Q
1 OVERVIEW
1
1.1 Features
The following are features of AD51H-BASIC.
(1) Both interpreter-type BASIC and compiler-type BASIC languages
can be employed.
This allows easy creation of system control programs and programs that perform
data linking with a computer without being aware of the complicated internal
structure of the module; it is easy to use even for beginners.
The execution speed can be made faster by compiling already created programs.
(2) Multiple programs can be executed simultaneously by means of
multitask processing.
The communication module supports multitask processing. Because of this, up to
8 BASIC programs can be executed simultaneously on the AD51H-S3, and up to
2 BASIC programs can be executed simultaneously on the A1SD51S/QD51 (-
R24). In such cases, the communication module sequentially switches the
execution of each program, so it appears to the user as if the multiple programs
are running simultaneously.
(3) Data can be communicated between programs via message ports
and communication module internal devices.
When multiple programs are executed simultaneously using the multitask
processing function, data can be communicated using the following means.
1) Message ports • • • • • • • • • • • • • • • • • • • • • • •
2) Communication module internal devices • • • • •
3) Shared memory • • • • • • • • • • • • • • • • • • • • • • •
1 to n data communication
1 to n data communication
1 to n data communication
(4) Execution can be synchronized between programs via events.
When multiple programs are executed simultaneously using the multitask
processing function, it is possible to synchronize their executions. This is
achieved by making programs wait for an event using the ZWAIT EVENT
instruction and generating an event by the ZSIGNAL instruction.
(5) Instructions for data link with external devices have been unified.
Data link with the PLC CPU of the same station as the communication module or
other PLC CPUs via MELSECNET can be performed using the PCRD/PCWT
instructions. The data link between the various interfaces of the communication
module and external devices is performed using the ZRECEIVE/ZSEND
instructions.
In this way, by creating a single subroutine that performs data link, it is possible
to share the arguments of each instruction by passing them to variables in that
subroutine.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...