Access For Pf611/Pf612 Controller Interface - Toshiba 2000 User Manual

Integrated controller
Hide thumbs Also See for 2000:
Table of Contents

Advertisement

Chapter4 Operation and Function
4.5 Access for PF611/PF612 Controller Interface Memory
This chapter explains the method of accessing the controller interface memory area of
PF611/PF612 from the application program of S2T/S2E.
(1) Read data
4
(2) Write data
20
(a) Instruction: special module data input instruction (READ instruction)
(b) Reading example
This is an example of reading one word from PF611 controller interface memory area
(address 10), and storage in D register (D1665) of S2T/S2E.
PF611 is mounted on slot 5 of a basic unit.
|R0001
|-||-+[00010 MOV RW116][00001 MOV RW117]------------------ |
|
| /* Read address and read word number */
|
+[H0005 READ RW116 -> D1665][RST R0001]------------- |
|
/* READ instruction execution, R0001 clear */
Explanation
H0005: Slot 5 of a basic unit that is the position where PF611/PF612 is mounted is shown.
Two high rank digits show the specification of the unit and two subordinate position
digits show the slot position.
Therefore, "H0103" becomes for slot 3 of enhancing unit 1.
RW116: Read address (00010) of PF611 controller interface memory is specified.
RW117: "One word" is specified.
D1665: It is a register that stores the data read from PF611.
R0001: It is a start condition of this READ instruction.
(a) Instruction: special module data output instruction (WRITE instruction)
(b) Write example
This is an example of sequentially writing the 16 words data from "D0080 – D0095"
of S2T/S2E to PF611 controller interface memory area (address 256).
PF611 is mounted on slot 5 of a basic unit.
|R0002
|-||-+[00256 MOV RW104][00016 MOV RW105]------------------ |
|
| /* Writing address and writing word number */
|
+[D0080 WRITE RW104 -> H0005][RST R0002]------------ |
|
/* WRITE instruction execution, R0002 clear */
Explanation
H0005: Slot 5 of a basic unit that is the position where PF611/PF612 is mounted is shown.
Two high rank digits show the specification of the unit and two subordinate position
digits show the slot position.
Therefore, "H0103" becomes for slot 3 of enhancing unit 1.
The PF module status is stored in "D1665" here.
RW104: Writing first memory address (00256) of PF611 controller interface memory is
specified
Rw105: Number of words written in output area. 16 words are specified.
D0080: It is a storage register of the written data. The writing data of 16 words is stored from
"D0080"
R0002: It is a start condition of this WRITE instruction.
|
|
|
|
|
|
model 2000 PROFIBUS Module User's Manual for S2T/S2E

Advertisement

Table of Contents
loading

Table of Contents