Cosimir Advanced Manual 060810-Advanced
Cosimir Advanced Manual 060810-Advanced
obots
Study Material
Advanced Course
Contents 1
• Safety Information and Warning p. 3
• Expansion Cards p. 5
• Communications p. 7
• Inputs and outputs p. 9
• RS-232 and RS-422 p. 13
• CC-Link p. 29
• Profibus p. 49
• Ethernet p. 57
• Multitasking p. 88
Contents 2
• Tracking p. 154
• Tracking “Red Line” p. 162
• Euromap 67 p. 185
- Thank You!-
Expansion Cards
All CRn-5xx controllers can be operated with expansion cards. Programming can be performed in
MELFA BASIC IV or with the MOVEMASTER Command. We recommend MELFA BASIC, however,
because the MOVEMASTER Command has a number of limitations.
Expansion Cards
1 Slot Occupied 3 Slots Occupied 2 Slots Occupied
Slot 1 Slot 2 Slot 3 Slot 1 Slot 2 Slot 3 Slot 1 Slot 2 Slot 3
Eth - - Eth SIO AX Eth SIO -
SIO - - Eth CC AX Eth CC -
- SIO - Eth SIO PB Eth AX -
- CC Eth AX PB Eth - AX
AX - - SIO SIO AX Eth PB -
- AX - SIO PB AX Eth - PB
- AX SIO CC AX SIO PB -
PB - - SIO SIO -
- PB - SIO CC -
- - PB SIO AX -
SIO - AX
Legend AX SIO -
Eth 2A-HR533 Ethernet card AX CC -
SIO 2A-RZ581 serial port card AX PB -
CC 2A-HR575 CC-Link card AX - PB
AX 2A-RZ541 additional axis card PB SIO -
PB 2A-RZ577 Profibus card PB AX -
PB - AX
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Communications
Overview
I/O Assignments
Some of the controller’s standard integrated I/Os are pre-assigned,
but you can change the assignments if necessary.
INPUT OUTPUT
SERVO ON 4 1
SERVO OFF 1 -
START 3 0
STOP 0 -
ERROR - 2
ERROR RESET 2 -
I/O ENABLE 5 3
The controllers also have functions that can be assigned to the I/Os.
For further details please refer to the hardware manuals.
CN300
CN100
Questions ??
obot
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
2A-RZ 581
The data transfer rate sets the communication speed between the devices in bits per
second.
• Possible values: 2400/ 4800 / 9600 / 19200
Make sure that the setting of the connected device matches the parameter setting.
The data bits parameter specifies how many bits per character are transmitted.
• Possible values: 7 or 8 data bits
Make sure that the setting of the connected device matches the parameter setting.
The parity bit is used to check that the received character is correct.
• Possible values: 0 / 1 / 2 = NON / ODD / EVEN
Make sure that the setting of the connected device matches the parameter setting.
The stop bits value specifies how many bits should be waited after sending a character
before the next character is transmitted.
• Possible values: 1 or 2
Make sure that the setting of the connected device matches the parameter setting.
Make sure that the setting of the connected device matches the parameter setting.
Make sure that the setting of the connected device matches the parameter setting.
Make sure that the setting of the connected device matches the parameter setting.
Questions ??
obot
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Net/10
Cell
Level
CC-Link
Field
Level Remote Encoders, Robots, Field
PLC Drives
I/Os valve MMI devices
blocks
Transmission speed 156 kbps 625 kbps 2.5 Mbps 5 Mbps 10 Mbps
Max. distance 1200m 600m 200m 150m 100m
Shield
bl
wh yw
Aluminium shealth
DB DG
Earthpoint
DA DA DA Terminating
Terminating
resistor resistor
DB DB DB
DG DG DG
Shielded twisted-pair Shielded twisted-pair
SLD cabling SLD cabling SLD
FG FG FG
CC-Link – Robots
SLOT 2
2A-HR 575
CC-Link – Robots
Designation Description
Communications function Communication is performed with bits and data words
DIP
Switches
Configure the settings described on the next slide before installing the card!
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Don’t forget that the last two bits for every robot are always reserved!
When you select one station you can use 4 registers; when you select 4 stations 16
registers are available.
Questions ??
Profibus
Mitsubishi
Source: Electric
Namur, AK– 3.5,
RobotasAdvanced Training experience
well as practical – Ho 08/2006from many applications
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Profibus – Robots
2A-RZ 577
ALL Slots
General
Parameter
Profibus Signal
numbers
Questions ??
ETHERNET
obots
Course Material
•10baseT-UTP Twisted-pair
•10baseT-UTP Twisted-pair4-wire
4-wirecable,
cable,unshielded
unshielded
••10baseT-STP
10baseT-STP Twisted-pair
Twisted-pair4-wire
4-wirecable,
cable,shielded
shielded
••10baseF
10baseF Fibre-opticscable
Fibre-optics cable
• Carrier sense: Station(s) that want to transmit listen(s) on the network line
• Multiple access: All stations wanting to transmit compete with equal rights
for access
• Collision detection: Stations listen to the line during transmission (to check
for collisions)
• When a collision is detected a jamming signal is sent
• All transmissions are stopped after detection of a jamming signal
• Data are resent after a randomly chosen delay period (detect and retransmit
in micro-millisecond range)
=> Non-deterministic procedure
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Wait using
Line free? backoff
No algorithm
No
End transmission
End transmission
with timeout
Acronyms
IP Internet Protocol
Acronyms
Acronyms
2A-HR 533
Select 10Base-5 or 10Base-T with switch SW1 before installing the card.
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Ethernet
When the controller starts up the software version of the Teaching Box is displayed in the upper
right section of the Teaching Box display. After completion of the startup procedure the operating
system version is shown in the same display.
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Entering configuration
parameters
To configure from the PC you must access the controller via the serial port to set up the Ethernet
parameters. When you have done this you can use Cosimir and Cosirop via the Ethernet.
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
NETIP Parameter
Parameter Description Default Value
Name
NETIP IP Adress 192.168.0.1
Die IP address identifies the station in the Ethernet system. It is effectively the station
number or the name with which the robots can be addressed.
Please always observe the Ethernet standards when assigning IP addresses:
• IP addresses must be unique, i.e. without overlaps
• The format is 4 blocks of numbers between 0 and 255
• The blocks must be separated by dots (periods)
If you are working in a LAN network please contact your system administrator to obtain a
valid IP address.
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
NETMSK Parameter
Parameter Description Default Value
Name
NETMSK Subnet mask 255.255.255.0
The subnet mask is like a filter that is used to define the individual networks.
Please always observe the Ethernet standards when assigning the subnet mask:
• The mask format is 4 blocks of numbers between 0 and 255
• The blocks must be separated by dots (periods)
• 255.255.255.255 is not a valid filter because it would not let anything through
If you are working in a LAN network contact your system administrator for assignment of
a valid subnet mask.
NETPORT Parameter
Parameter Description Default Value
Name
NETPORT Communications port number 10000 – 10009
The robot can communicate with a single IP address via multiple channels, and each
robot has 10 ports that can be addressed individually. Port 1 is reserved for real-time
control. The other ports are available for programming via software and DATA Link.
These values do not normally need to be changed. If you do change them make sure that
there are no overlaps!
CPRCE Parameter
The CRRCE11 ... CRRCE19 parameters set the protocol for the ports.
COMDEV Parameter
COMDEV assigns the properties of COM1 through COM8 to the NETPORT. They are required
for the robot’s OPEN instructions.
COMDEV Relationships
Relationships:
COMDEV to OPT11 through OPT19
OPEN COMn and COMDEV
MXTCOM Parameter
The destination IP addresses from the notes are entered here for checking the robot.
MXTTOUT Parameter
This value defines the number of 7.11ms units after which the robot issues an error 7820
timeout if no communication has taken place.
C:\PING
When you have installed the card, connected the cables and
configured the parameters you can check the connection with
your computer’s PING function.
The controller must be restarted after configuration of the
parameters!
Ethernet
In Cosirop set the
communications parameters to
TCP/IP and enter the robot’s
IP address and port.
You must also enter the IP
address for the robot.
Otherwise you can use the
default parameters..
If you don’t use the defaults
please check that the CPRCE
protocol parameter is set to 0.
Ethernet
Ethernet
Ethernet
Assigning IP addresses:
The stations in Ethernet networks are accessed via addresses. When you
connect two stations directly with a crossover Ethernet cable without a hub it’s
important that the IP addresses of the two stations should not be too far apart.
You can display the address of the PC with a simple command (e.g., under
Win98: Start > Programs > MS-DOS Prompt > C:\WINDOWS>ipconfig). The
default value for the subnet mask is 255.255.255.0.
The NETIP parameter of the robot controller (5.Maint > 1.Param.) or in Cosirop
(Extras > Settings > Communication Port > TCP/IP) must then be set to an IP
address whose last number block is different by a small amount. The NETMSK
parameter can be left at the default setting of 255.255.255.0.
Ethernet
(Of course, if you want you can also leave the standard address of the robot
unchanged and change the PC’s Ethernet address instead.)
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Ethernet
Ethernet
Summary :
1. Establish the hardware connection between the PC and the robot controller
2. Obtain the PC’s IP address and enter the modified address in the NETIP
parameter of the robot controller and in the interface settings of the Cosirop
software.
3. Register the Ethernet in the COMDEV parameter.
4. Check and set the protocol in the CPRCExx parameters. No modification is
required for Cosirop (upload, download,...), for access from a robot program
set the value of the parameter to 2.)
Questions ??
Multitasking
Multitasking
What is multitasking?
Multitasking
Program 32
Program 1
Program 2
...
A Multitasking Example
Camera system
SLOT 1 SLOT 2
10 JOVRD 60 10 OPEN “COM1:” AS #1
20 CNT 0 20 IF M_IN(1) = 0 THEN 20
30 MOV P_01 30 INPUT #1,P_01,P_02,P_03
40 MOV P_02 40 DLY 0.5
50 MOV P_03 50 GOTO 20
60 GOTO 30
Start Program
Reset program
XRUN selection
XRST
Cycle stop
RUN Stop WAIT
Mode Mode
XSTP
Start
XRUN
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Multitasking
1. Execution by a program
Multitasking
Example :
Program 1 (SLOT 1) Program 2 (Slot 2)
10 MOV P1 10 OPEN „COM1:“ AS #1
20 XRUN 2,“2“ 20 IF M_01 = 0 THEN 20
30 WAIT M_RUN(2) = 1 30 INPUT #1,M1
40 M_01 = 1 40 P_05.X = P_05.X+M1
50 IF M_01 = 1 THEN 50 50 M_01 = 0
60 MOV P_05 60 CLOSE
70 END 70 END
Multitasking
2. Execution via the robot controller’s control panel or
external I/O signals
Multitasking
Example:
• Define Program 1 in Slot 1 in parameter SLT1 (SLT 1 = 1,CYC,START,1)
• Define Program 5 in Slot 2 in parameter SLT2 (SLT 2 = 5,REP,ALWAYS,2)
Then turn the robot controller’s power supply off and on again to activate the
parameters.
Slot 1 is started when the Start button on the robot controller is pressed or by an
external Start signal via the I/O level.
Slot 2 is started after the robot controller has completed its boot process, when
the power supply is switched on. It does not require a separate Start signal.
Questions ??
Compliance
Control
Compliance Control
Compliance Control
Where can Compliance Control be used?
Compliance Control is helpful in all applications in which the robot must grip
and/or guide components that are simultaneously subjected to additional
external forces.
machines
- Insertion and removal of workpieces or
tools on lathes, surfaces, grippers, CNC
machines etc…
The amplification factor can be between 1.0 and 0.0. The smaller
the value the more gentle the movement. 1.0 is the highest control
amplification, 0.0 provides the greatest “softness” for the robot
system.
The amplification factor can be between 1.0 and 0.0. The smaller
the value the more gentle the movement. 1.0 is the highest control
amplification, 0.0 provides the greatest “softness” for the robot
system.
The amplification factor can be between 1.0 and 0.0. The smaller
the value the more gentle the movement. 1.0 is the highest control
amplification, 0.0 provides the greatest “softness” for the robot
system.
Example:
10 CMPG 0.5,1,0.5,1,1,1 // Amplification factor
20 CMP TOOL, &B101 // Coordinate assignment
Compliance Control
Requirements and fundamentals:
-Compliance Control can be used for all robots controlled by a NARC controller
(controllers CR1, CR2 und CR2A). Exception: RP-xAH robots!!
- Once this function has been activated it remains active (also in Teach mode)
until the instruction CMP OFF is issued or a program with new values is started.
- The function also remains active after an Emergency Stop, provided that the
controller is not powered down..
- The distance between the current and taught position can be read out with the
system variable M_CMPDST.
- The function is activated by Power On/Off.
Questions ??
Multi Mechanism
Control
Multi-Mechanism Control
Multi-Mechanism Control –
Additional Axes
6 + 2 3 3 Axes
1 2 3 Mechanisms
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Multi-Mechanism Control
Robots
Multi-Mechanism Control –
(CR1)
How is multi-mechanism control activated?
Multi-Mechanism Control -
(CR2)
How is multi-mechanism control activated?
Multi-Mechanism Control -
(CR2A)
How is multi-mechanism control activated?
Multi-Mechanism Control –
System Requirements
The robot Teaching Box system version must be greater than A3, as
only these versions contain the selection menu for the mechanisms.
In teach mode you can only control one mechanism with the robot; the
mechanism to be controlled is selected with the Teaching Box. In
program execution mode multiple mechanisms can be controlled
simultaneously by different programs.
Multi-Mechanism Control –
Parameters
Required parameter settings: (see examples)
(Switch the power off and on again briefly to activate the settings!!)
Multi-Mechanism Control
Examples
Multi-Mechanism Control –
Example (1)
Parameter settings : +
(2 additional servo amps used as 2 additional interpolated
robot axes)
Robot Controller:
Parameter AXUNUM : 0 (no additional mechanism)
Parameter AXMENO : 1,1,0,0,... (assignment mechanism 1 ->
robot)
Multi-Mechanism Control -
Example (2)
Parameter settings: +
(3 additional servo amps configured as 2 interpolated additional robot
axes, plus one additional single-axis mechanism)
Robot controller:
Parameter AXUNUM : 1 (one additional mechanism)
Parameter AXMENO : 1,1,2,0,... (assignment mechanism 1 ->
Robots; 2 -> mechanism 2)
Multi-Mechanism Control –
Example (3)
Parameter settings :
(3 additional server amps configured as one additional mechanism
with 3 axes)
Robot controller:
Parameter AXUNUM : 1 (one additional mechanism)
Parameter AXMENO : 2,2,2,0,... (axis assignments to mechanism 2)
Multi-Mechanism Control –
Example (4)
Parameter settings:
(6 additional servo amps configured as 2 additional mechanisms with 3
axes each)
Robot controller:
Parameter AXUNUM : 2 (2 additional mechanisms)
Parameter AXMENO : 2,2,2,3,3,3,... (assignment to mechs. 2 and 3)
Multi-Mechanism Control –
Example (5)
Parameter settings : +
(8 additional servo amps configured as 2 additional mechanisms with 3
axes each, plus two interpolated robot axes)
Robot controller:
Parameter AXUNUM : 2 (2 additional mechanisms)
Parameter AXMENO : 1,1,2,2,2,3,3,3 (assignments to mechs. 1, 2, 3)
Multi-Mechanism Control
Servos
Multi-Mechanism Control –
System Requirements
At present only the MR-J2-B and MR-J2S-B servo amps (current output 50W –
55kW) can be controlled by the robot controller. Special software and an interface
cable are required for configuring the servo amps.
Servo amp configuration software:
MRZJW3-Setup71 ver. C3 (144542) for the MR-J2 B servo amp
MRZJW3-Setup151 ver. E1 (149713) for the MR-J2S B servo amp
Interface cable for connecting the servo amp to the PC:
MR-CPCATCBL3M (55910)
If you wish to use absolute positioning with the servo amp (similar to the robots’
absolute positioning mode) you also need a battery (A6BAT, 4077).
Multi-Mechanism Control –
Software
Multi-Mechanism Control –
Software
Multi-Mechanism Control –
Servo Configuration Software
(1)
Multi-Mechanism Control –
Servo Configuration Software
(2)
Multi-Mechanism Control –
Servo Configuration Software
(3)
Multi-Mechanism Control –
Servo Configuration Software
(4)
Multi-Mechanism Control –
Servo Configuration Software
(5)
Multi-Mechanism Control –
Servo Configuration Software
(6)
Multi-Mechanism Control –
Servo Configuration Software
(7)
Multi-Mechanism Control –
Servo Configuration Software
(8)
Multi-Mechanism Control –
Servo Configuration Software
(9)
Multi-Mechanism Control –
Servo Configuration Software
(10)
Multi-Mechanism Control –
Servo Configuration Software
(11)
Multi-Mechanism Control –
Servo Configuration Software
(12)
Multi-Mechanism Control –
Parameters
Questions ??
Sensorless crash
detection
General
What is it good for ?
• Protect human
• protect machine
• protect workpiece
Motorcurrent
overcurrentdetection bandwidth
I Motorcurrentcurve
t
- the overcurrent bandwidth is free selectable
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Parameter
COL 1,1,1
0=OFF / 1=OFF with ERROR / 2=OFF without ERROR
0=OFF / 1=ON during JOG mode
0=OFF / 1=ON
Commands
COLCHK ON = detection ON
COLCHK OFF = detection OFF
COLLVL = detection in % for each axis seperat,
range 1-500
NOERR = Fault inactive when collission detected
variables
Questions ??
Tracking
Introduction
Introduction
Benefits
Benefits
Applications
- Food industry
Applications
- Pharmaceuticals industry
Applications
- Industrial manufacturing
- Pharmaceutical industry
- Packaging industry
- (un-) loading of goods
Conveyor Light
belt Origin position barrier
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Questions ??
System „tuning“
general
There are different ways to optimize a system :
- speed tuning,
- acceleration / deceleration settings,
- continuous movements,
- load settings,
- parameter settings,
- cycle time measurement
Optimum distance
3 6 4
3
5 4 2
robot 5
robot
1 2 1 6
Speed tuning
Commands :
OVRD - global override -> [%]
JOVRD - joint override (MOV) -> [%]
SPD - linear / circular override (MVS, MVR) -> [mm/s]
Sample :
10 JOVRD 100
20 JOVRD 100
30 SPD 850
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Acceleration / deceleration
settings
Command :
ACCEL - acceleration and deceleration -> [%,%]
Sample :
10 Accel 100,100 -> 200ms acceleration / 200ms deceleration
20 Accel 200,500 -> 100ms acceleration / 40ms deceleration
30 Accel 10,400 -> 2000ms acceleration / 50ms deceleration
Mitsubishi Electric – Robot Advanced Training – Ho 08/2006
Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course /// Robots Advanced Course
Continuous movements
Command :
CNT - continuous movement off (0) / on (1)
Depending on time, not on distance...
Sample :
10 CNT 1 10 CNT 1
20 MOV P1 20 MOV P1
30 M_OUT(8) = 1 30 MOV P2
40 MOV P2 40 MOV P3
50 CNT 0 50 CNT 0
Load settings
Commands :
LOADSET - definition of gripper and load
OADL - optimum acceleration / deceleration off / on
Relates to parameters HANDDATx / WRKDATx
Sample :
10 LOADSET 1,3 -> gripper 1 combined with load 3
20 OADL ON
30 MOV P5
Sample :
10 M_TIMER(1) = 0 -> reset of timer 1
20 MOV P1
30 MOV P5
40 M3 = M_TIMER(1) / 1000 -> storage of timer result into M3, [s]
Questions ??
Euromap 67
general
offer
Euromap
box
Euromap interface
Questions ??