Setting Example - Omron SYSMAC CPM1 Operation Manual

Hide thumbs Also See for SYSMAC CPM1:
Table of Contents

Advertisement

I/O Wiring

6-4-1 Setting Example

The following CPM1 PC consists of a 20-point CPU Unit and an Analog I/O Unit.
This example shows how to set this PC to input from 0 to 10 V and from 4 to
20 mA, and to output from 0 to 10 V.
CPM1-20CDR-j
CPU Unit
The I/O word allocations would be as follows:
• Analog input 1: IR 001
• Analog input 2: IR 002
• Analog output: IR 011
Here, the range code would be set to "FF04" to set analog input 1 to input from 0
to 10 V, analog input 2 to input from 4 to 20 mA, and the analog output to output
from 0 to 10 V.
The range code can be set by writing FF04 to IR 011 each time operation is
started. The following instructions can be used.
(First Scan Flag)
25315
Analog and digital conversions will be automatically started by the Analog I/O
Unit when the range code is set to any value between FF00 and FF07.
Section
CPM1A-MAD01
Analog I/O Unit
MOV (20)
#FF04
011
6-5
107

Advertisement

Table of Contents
loading

Table of Contents