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

Motion control units
Table of Contents

Advertisement

Overview of Version 1 Upgrades
Application Example
R1
A20011
First Cycle
Flag
R2
=
Application Precautions
Using G Language to Make Settings (Synchronized Control Functions Only)
Execution Results
With normal completion, after the IOWR instruction has been executed the
Equals Flag turns ON and the selected functions are enabled. Under the fol-
lowing conditions the operation will not be completed normally.
• If an intelligent transfer requested immediately before has not been com-
pleted.
• If the Teaching Box is in Enabled Mode or Occupy Mode.
• If a number other than 3 is specified as the number of words to be trans-
ferred.
• If the data in words S+0 and S+1 is not correct.
• If executed more than once after powering up or restarting.
The other Condition Flags operate the same as for other addresses used for
IORD/IOWR in the MC Unit. (Refer to Flags on page 210 .)
If an attempt is made to change the settings more than once after powering
up or restarting, an IOWR instruction formatting error will occur.
MOVL
Writes 41AC hex to
#FBE5341AC
D00000, and BE53 to
D00000
D00001.
Writes 0010 hex to D00002.
MOV
Turns ON customized function
#0010
selection bit 04 (synchronized
D00002
control functions). The other
functions are turned OFF and
not used.
IOWR
Specifies FFFF hex for the
#FFFF
control data, and writes the
C
D00000
customized function usage
S
#00030000
D
selections to the MC Unit
(example: Unit #0).
R1
R2
Set customized function selection bits 05 to 15 to 0 to prevent malfunctioning
in the future when new functions are added for these bits.
It is recommended that this function be executed first after the MC Unit is pow-
ered up or restarted. If it is executed while an operation related to the function
to be enabled is in progress, the function will be enabled in the middle of the
operation and may have an undesired effect.
When a synchronized control function (i.e., virtual axes, electronic gear, elec-
tronic cam, electronic cam/gear cancel function, or register function) is used,
normally G01 (the G code for linear interpolation commands) is used, and
register E31 is specified (indirectly specifying a position data address from
register E31 as the operand).
At the beginning of the indirectly specified operand table, specify which of the
synchronized control functions is to be used.
Specifically, use G63 (SUBSTITUTION) and the G01 operating axis (E31) as
follows:
Example: Electronic Gear Function
G63 E31 = 1000 ······Sets the operand table from A1000.
G63 A1000 = 1·······Sets 1000 to 1 (electronic gear function) at the beginning
of the operand table.
Transfer source data
15
0
S:
A
C
D00000
4
1
D00001 B
E
5
3
D00002
0
0
Bits 00 to 04: Customized function selection bits
07
06
05
04
03
0
0
0
1
0
Section 1-12
02
01
00
0
0
0
Bit 00: Linked traverse function (not used)
Bit 01: Memory link function (not used)
Bit 02: M code reset with memory
operation stopped
Bit 03: High-speed general-purpose
output function (not used)
Bit 04: Synchronized
control functions (used)
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents