C200H Sub-Program - Omron SYSMAC C200H-FZ001 Operation Manual

Fuzzy logic unit
Table of Contents

Advertisement

C200H Sub-program

4-1
C200H Sub-program
1, 2, 3...
Example Sub-program
Fuzzy Logic Settings
26
A sub-program must be prepared within the C200H program to control the trans-
fer of data between the C200H and the Unit. This program can be written with
standard instructions such as MOV(21). The four basic steps in this sub-pro-
gram are listed below.
1. Specify (in the Fuzzy Logic Settings) the words to which the input and output
data will be written.
2. Transfer the input data to the words specified in 1.
3. Turn ON the Processing Start Bit to initialize fuzzy processing.
4. Transfer the output data from the words specified in 1 when the Results Out-
put Flag is turned ON.
The following example shows a sub-program for a system with 2 Analog Input
Units and 2 Analog Output Units. Each Analog Input Unit has 4 inputs and each
Analog Output Unit has 2 outputs, for a total of 8 inputs and 4 outputs.
In this example the unit number is set to 5 (n=5), so words IR 150 to IR 159 are
automatically allocated to the Fuzzy Logic Unit. Refer to 3-2 IR Area Words for
details on the function of bits in words IR 150 to IR 154.
IR words
Function
150 to 153
Fuzzy Logic Settings
154
Fuzzy Logic Unit Flags
155 to 159
Available as work words
The 8 inputs will be contained in DM 0100 to DM 0107. While only 3 of the 4 out-
puts are needed, the structure of the outputs is fixed at 4 output and 4 error code
words which will be contained in DM 0110 to DM 0117.
Word
IR 150
Number of Inputs (8)
IR 151
First Input Address (DM 0100)
IR 152
Number of Outputs (3)
IR 153
First Output Address (DM 0110)
Function
0008
0100
0003
0110
Section 4-1
Value

Advertisement

Table of Contents
loading

Table of Contents