Omron CS1W-MC221 - 02-2008 Operation Manual page 516

Motion control units
Table of Contents

Advertisement

Setting the Teaching Address
10-2-1 Setting the Teaching Address from the Ladder Program
Specifications
Transfer Data
Set the following data with the first operand of the IOWR instruction and trans-
fer the data to the MC Unit.
Teaching Address Set Bit (Task 1): Address 17E2 hex (6114)
Teaching Address Set Bit (Task 2): Address 17E3 hex (6115)
Teaching Address Set Bit (Task 3): Address 17E4 hex (6116)
Teaching Address Set Bit (Task 4): Address 17E5 hex (6117)
Refer to 3-6 Command Area for details regarding the command area.
The following is a basic explanation of the IOWR instruction specifications for
setting the teaching address. For a more detailed explanation, refer to 4-2
IOWR and IORD Specifications.
C: Control code, S: First source word, D: Destination unit number and total
number of words written
Operand
C
Teaching address (Hex)
Teaching Address for Task 1: Address 17E2 Hex (6114)
Teaching Address for Task 2: Address 17E3 Hex (6115)
Teaching Address for Task 3: Address 17E4 Hex (6116)
Teaching Address for Task 4: Address 17E5 Hex (6117)
S
First source word
Specifies the first word in the CPU Unit from which data is to be trans-
ferred.
D
D+1
Total number of words transferred (Hex)
Specify the destination unit number to which data will be transferred
and the total number of words to transfer.
Number of words to transfer:
Always 0002 Hex. (Refer to Transfer Data below.)
Destination unit number:
MC221: 0000 to 005D Hex (Unit numbers 0 to 93)
MC421: 0000 to 005B Hex (Unit numbers 0 to 91)
Example: #0002003, when two words of data are transferred to Unit #3.
Set the following data starting at the first source word and execute the IOWR
instruction.
Set the task 1 to 4 teaching address (first address) to a value from 0000 to
07CF hex (0 to 1999).
IOWR
@IOWR
C
S
D
Description
Destination unit number (Hex)
Task 1 to 4 first teaching address
Section 10-2
C
S
D
D
489

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1w-mc221Cs1w-mc221-v1Cs1w-mc421Cs1w-mc421-v1

Table of Contents