Total Solution for Industrial Automation
29
PWM Output Module User’s manual
Appendix 1 Using FROM
∙
FROMP/TO
∙
TOP Instructions
The CIMON PLC is composed of various special modules such as AD, DA, High Speed
Counter, etc. All of these have a shared memory in their hardware for data exchange
with CPU module. The CPU module can send various operation instructions, and
receive data through shared memory. In the same way, a scan program can read
from and write to shared memories of special module by using dedicated
instructions to this purpose, FROM
∙FROMP
and TO
∙TOP
.
In the CIMON PLC system, shared memory is called “Buffer memory”. To use FROM
∙
FROMP
/TO
∙TOP
instructions appropriately, a programmer must know the memory
map of the target special module. Every special module which has a shared memory
has a map in its manual to guide users.
1. FROM/FROMP instruction
FROM/FROMP instruction reads Word data from shared memory of special module,
and stores them to the internal device of CPU. The data contain such as the
converted value of AD module, the temperature value of RTD or TC module, etc.
The typical usage of the instruction can be represented by following LD.
[Figure 9] How to use FROM / FROMP instruction
Form
Content
Remarks
S1
Base and Slot number where
the special module is installed
H00 01: Base No.0, Slot No.1
*As PLS-S Series have no expansion function.
So Upper Base No. is H00
S2
Start address of buffer memory
Check the buffer memory address of the
module as buffers memory start address of
each module varies.
S3
Start address of the device
where read data are stored
Save the value from buffer memory of module
from device area of CPU.
S4
Number of words to read
Save a number of data to S4-designated area in
order as the number of data(word) to read.
[Table 8] Notation and form of FROM / FROMP instruction