User Programming Examples; Basic Programming; Using The Unit Configuration Worksheet - Omron SYSMAC C Series Operation Manual

Analog i/o units
Hide thumbs Also See for SYSMAC C Series:
Table of Contents

Advertisement

User Programming Examples

5-7

User Programming Examples

5-7-1 Basic Programming

READ/WRIT Execution Restrictions
1, 2, 3...
5-7-2

Using the Unit Configuration Worksheet

1, 2, 3...
94
This section provides some user programming examples for CV-series PCs.
These examples may need to be altered for use with other PCs. Refer to the doc-
umentation on programming for your PC for details.
The ladder diagram instruction shown below is used in conjunction with the de-
fault settings. It can be executed to read the A/D data and alarm flags for each
input point into the data memory (DM) area. This programming rung assumes
that the Unit is in its factory default settings.
Always ON
Alarm flags and analog conversion data will be stored in CPU Unit memory be-
ginning at the DM address specified in the ladder diagram instruction.
DM xxxx
DM xxxx + 1 to xxxx + 16
1. The differentiated READ and WRIT instructions cannot be executed for
Special I/O Units on SYSMAC BUS/2 Slave Racks. The READ and WRIT
instructions must be executed until the Equals Flag (A50006) turns ON indi-
cating that the execution is completed.
2. The READ and WRIT instructions cannot be simultaneously executed for
the same Special I/O Unit. In such cases, execute WRIT first, and after the
execution is completed, execute READ.
3. One SYSMAC BUS/2 Remote I/O Master Unit can simultaneously handle
up to two READ and WRIT instructions. If two READ and WRIT instructions
are executed for Units mounted to SYSMAC BUS/2 Slave Racks and an at-
tempt is made to execute a READ or WRIT instruction for a third Unit, the
Carry Flag (A50004) will be turned ON without executing the third instruc-
tion.
4. Therefore, when continuously executing READ instructions, you can use
the READ and WRIT instructions for a maximum of two Special I/O Units
under each SYSMAC BUS/2 Remote I/O Master Unit.
5. Up to four SYSMAC BUS/2 Remote I/O Master Units can be mounted to the
CV1000 or CV2000. In this case, therefore, up to eight READ and WRIT in-
structions can be executed simultaneously.
6. Up to 255 words can be transferred using a READ or WRIT instruction.
Appendix A is a worksheet to use when configuring the advanced functions
available in the Unit. It is particularly useful in setting up a table in the CPU Unit
data memory area that corresponds to the Unit memory map. The data can then
be easily transferred to the Unit using the I/O WRITE ladder instruction.
Note When configuring the Unit's advanced functions, use the following steps.
1. Disable the input point to be configured in Unit memory map word 47.
2. Reconfigure the input point for the desired advanced function.
3. Enable the input point in Unit memory map word 47.
A 50013
[READ
N=17
N: Read 17 locations
S: Unit I/O word
D: Start word to store data in DM
Unit alarm flags
Input conversion data in
BCD format, for inputs 1 to
16
Section
S=yyyy
D=xxxx]
5-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents