OpenCIM User Manual Ver.4.7
OpenCIM User Manual Ver.4.7
OpenCIM User Manual Ver.4.7
User Manual
Catalog No. 100094 Rev. I
Copyright 2015 by Intelitek Inc.
OpenCIM User Manual
Cat.# 100094 Rev. I
August 2015
All rights reserved. No part of this publication may be stored in a retrieval system, or
reproduced in any way, including but not limited to photocopy, photography, magnetic or
other recording, without the prior agreement and written permission of the publisher.
Program listings may be entered, stored and executed in a computer system, but not
reproduced for publication.
This manual is designed to provide information about the OpenCIM, OpenFMS, and
OpenCIM Offline system and software. Every effort has been made to make this book
complete and as accurate as possible. However, no warranty of suitability, purpose or fitness
is made or implied. Intelitek Inc. is not liable or responsible to any person or entity for loss
or damage in connection with or stemming from the use of OpenCIM, OpenFMS,
OpenCIM Offline and/or the information contained in this publication
Intelitek Inc. bears no responsibility for errors which may appear in this publication and
retains the right to make changes to the software and manual without prior notice.
INTELITEK INC.
Tel: (603) 413-2600
Fax: (603) 625-2137
e-mail: [email protected]
web site: www.intelitek.com
Table of Contents
1 .............................................................................................................................. 1-1
2 .............................................................................................................................. 2-1
3 .............................................................................................................................. 3-1
4 .............................................................................................................................. 4-1
Installation.......................................................................................................................................................... 4-1
OpenCIM Installation Workflow .................................................................................................................... 4-2
Hardware Installation ...................................................................................................................................... 4-3
Conveyor and Pallets .................................................................................................................................. 4-3
Robots and Robot Controllers ..................................................................................................................... 4-3
ASRS .......................................................................................................................................................... 4-3
Barcode Reader ........................................................................................................................................... 4-3
RFID Reader ............................................................................................................................................... 4-4
Pneumatic Devices ...................................................................................................................................... 4-4
Palletizing Racks and Buffers ..................................................................................................................... 4-4
Templates .................................................................................................................................................... 4-4
Wiring ............................................................................................................................................................. 4-5
Software Installation ....................................................................................................................................... 4-6
Installing the OpenCIM Software ............................................................................................................... 4-7
Installing OpenCIM Projects .................................................................................................................... 4-14
Manual Web Viewer Installation .............................................................................................................. 4-18
Software for Workstation PCs .................................................................................................................. 4-28
Robot Positions and Homing ......................................................................................................................... 4-39
Homing the Robot from the ACL Controller ............................................................................................ 4-39
Homing the Robot from Scorbase ............................................................................................................. 4-40
System Check ................................................................................................................................................ 4-41
5 .............................................................................................................................. 5-1
6 .............................................................................................................................. 6-1
7 .............................................................................................................................. 7-1
8 .............................................................................................................................. 8-1
9 .............................................................................................................................. 9-1
10 .......................................................................................................................... 10-1
Web Viewer ...................................................................................................................................................... 10-1
Installing the Client ....................................................................................................................................... 10-2
Accessing the Web Viewer ........................................................................................................................... 10-4
Web Viewer Main Window .......................................................................................................................... 10-5
Graphic Display Tab ................................................................................................................................. 10-5
View Scheduler Tab.................................................................................................................................. 10-6
View Program Tab .................................................................................................................................... 10-6
View Leaf Tab .......................................................................................................................................... 10-7
View Order Tab ........................................................................................................................................ 10-7
View Storage Tab ..................................................................................................................................... 10-8
View Device Tab ...................................................................................................................................... 10-9
View Pallet Tab ........................................................................................................................................ 10-9
Web Viewer Status Bar ........................................................................................................................... 10-10
View About Tab...................................................................................................................................... 10-11
11 .......................................................................................................................... 11-1
12 .......................................................................................................................... 12-1
13 .......................................................................................................................... 13-1
14 .......................................................................................................................... 14-1
15 .......................................................................................................................... 15-1
Unique Features
This section gives the background for understanding what is special about OpenCIM and
basic operations performed in the OpenCIM system.
OpenCIM software provides unique industrial capabilities not found in other educational
CIMs:
OpenCIM feels familiar to first-time users because it is based on
the standard Windows Graphic user interface.
OpenCIM allows for targeted training at a given station or device.
OpenCIM is realistic because it uses equipment found in actual
industrial CIMs.
OpenCIM resembles industrial CIMs in its ability to grow by using
distributed processing at each production station. Distributed
processing also makes for a more robust system. Even if the PC
performing the central manager function goes down, each machine
can still be operated in a stand-alone mode.
OpenCIM uses a sophisticated network of PCs which allows various
devices to perform multiple operations simultaneously. This network
also allows CIM devices to communicate with each other.
OpenCIM provides you with a powerful, yet flexible report
generator. This utility program allows you to access nine types of
predefined reports or gives you the option of creating your own user-
defined reports.
OpenCIM uses the latest object oriented techniques in:
Defining the CIM Layout: Click on a Graphic object and drag it to
the appropriate location on the CIM layout screen (e.g. Drag a robot
in order to place it beside a CNC machine).
Defining an Objects Properties: Click on an object to set its
properties, e.g. the type of parts a machine can handle.
Graphic Production Tracking: Uses Graphic objects to simulate CIM
operation on screen.
OpenCIM allows you to run a production simulator on a PC to
observe results without actually operating the CIM production line.
OpenCIM provides the opportunity to observe how a set of diverse
hardware components work together in a real-world environment.
OpenCIM is more comprehensive than other limited function CIMs.
It can use a variety of equipment including:
A variety of robots
Processing machines
Quality control devices (machine vision, laser scan meter, height
gauge, CMM, caliper)
Automated storage and retrieval systems (ASRS)
Peripheral devices (barcode scanner, X-Y table, electric screwdriver,
laser engraver, etc.)
OpenCIM Offline
OpenCIM Offline is the simulation version of OpenCIM. The user can design and run an
unlimited variety of CIM or FMS cells in simulation mode.
It does not support hardware or online operation.
Device drivers are not included in this package.
Templates
Templates are plastic trays which can hold various types of parts. They allow parts to be
transported on the conveyor.
Intelitek robots may be operated using either ACL or Scorbase as their programming
language. Each programming language uses a device driver in order to communicate with
the OpenCIM manager software.
Robotic programs inform the robot what path to follow and what task to perform once it
reaches a destination. The controller (ACL, USB or USB PRO) provides the power supply to
the robot and moves the robot by controlling the power to the motors inside the robot.
The controller can control robots and peripheral devices (e.g. barcode reader, X-Y table)
simultaneously. The CIM peripheral devices are connected to the controllers auxiliary
I/O ports and RS232 ports. All ports (robot, I/O, RS232) can be controlled using Robotic
programs.
Processing Machines
Processing machines process parts according to processing programs stored in their memory.
The CIM Manager keeps track of the programs that reside in a machines memory and
downloads a new program to process an upcoming part as needed.
OpenCIM can interface to machines that use either I/O lines or an RS232 interface to control
operations such as opening/closing a door, turning on/off the machine, etc. Status lines report
information, such as whether a door is open or closed and when a process is finished.
What is Optimization?
In multiple productions (when producing more than one part in a manufacturing cycle) it is
required to optimize the timing synchronization to maximize system functionality at
minimum costs. This process is called System Optimization.
There are two types of system optimization methods. In the first method, the schedule is
defined in advance and a detailed schedule is set for each machine. In the second method, a
set of rules is defined, according to which the system acts, and during run-time, decisions are
made according to this set of rules. The Optimization Approach used by OpenCIM
implements this second method which enables the system to overcome failures, imprecision
and inaccurate assumptions, and still provide you with an efficient system.
In a CIM system, the Time, Cost and Quality factors determine the efficiency of the overall
system performance. These factors are the target functions of the different algorithms (or of
the system). Generally, combinations of these three factors are used in a CIM manufacturing
cycle. Additional factors, such as the machine type, can also affect the performance of the
CIM cell.
The CIM Manager controls the efficiency of a manufacturing cycle, by performing the
following tasks:
Scheduling: The CIM Manager determines the time schedule that a
part will be released from storage and in what order.
Dispatching: The CIM Manager determines which part will be
processed in which machine and when.
These Scheduling and Dispatching tasks are controlled by the CIM Optimization Definition,
as described in Optimization in Chapter 7, CIM Manager Utility Programs.
PC Requirements in OpenCIM
The OpenCIM system provides great flexibility in the way in which PCs are used around the
cell. You can control the degree of distributed processing in the OpenCIM environment
based on how you assign the following software modules to PCs:
CIM Manager
Device Manager (i.e. OpenCIM device drivers)
Graphic Tracking
In a busy CIM cell, performance is enhanced by installing most of the above software
modules on a separate PC. In this scenario, each station would have a dedicated Station
Manager PC. A LAN is used to connect all of the PCs that are running OpenCIM software.
The OpenCIM software modules use this LAN to exchange information.
At the other extreme, all of the above OpenCIM software modules could be loaded on one
high-performance PC. Multiple OpenCIM software modules can run on the same PC in the
multi-tasking environment provided by Windows. In this case, inter-module communication
is internal, where services are provided by the operating system. When a single PC is used,
no LAN is required, although Network Settings for the PC still have to be configured for
TCP/IP.
Intermediate configurations are also possible. For example, one PC may be used to run both
the CIM Manager module as well as the PLC device driver. A single Station Manager PC
may be connected to devices at different stations.
Inputs/Outputs
I/O connections can be used to turn production devices on and off, and to transmit binary
information about the status of a device. A separate wire carries each I/O signal. I/O
connections use a low voltage DC signal. The exact voltage depends on the specifications of
the devices being connected.
I/O connections are used for signaling purposes only. An output signal should never be used
to directly drive a piece of electrical equipment. In this case, an output signal should be
buffered through a relay or other device to prevent overloading the circuit.
The following CIM devices use I/O connections:
PLC (to raise and lower piston stops)
Magnetic sensors at conveyor stations used to send pallet IDs to the
PLC
Processing machines (to operate the machine and report its status)
Devices attached to an ACL controllers I/O ports (e.g. an automatic
screwdriver, a pneumatic gripper for a robot, etc.)
Warning! Exercise caution whenever you are in the area of the CIM cell.
Be sure you know the location of the ON/OFF switch, and any
emergency shutoff switches, on the following equipment:
Robot controller
Pallet conveyor
CNC machines
Be alert since any idle piece of equipment could start up suddenly.
All CIM machinery can be turned on and off unexpectedly via
computer control.
Exercise special caution in the vicinity of robots since they can start
up without notice and move in unexpected ways.
Members of a group should be careful not to crowd too close around
moving equipment when observing the activities at a given station.
Do not come near a moving device when it is in operation. Be careful
that hair, clothes (especially loose sleeves) and jewelry are kept away
from the mechanism.
Do not stick your fingers into a device while it is in operation; they
may get caught in the mechanism.
Keep the work area clean and free of clutter.
Do not exceed the loading capacity of a device.
Turn off a device before attempting adjustments, performing
maintenance or measuring a part.
To immediately abort all running programs and stop movement of all axes (e.g. robots):
Press the Abort or Emergency Stop key on the teach pendant (TP), or
Note
Press the controllers red Emergency button.
In ACL controller: Use the ACL command A <Enter>, or
in Scorbase, press the STOP icon on the toolbar.
ASRS Carousel
The following list contains safety instructions for the use of ASRS Carousel:
Do not place your hand or any other object in or near the main drive
belt, located under the lowest level of the ASRS carousel, while the
device is operating. The belt is extremely dangerous and can cause
severe injury.
Make sure that the carousel has been disconnected from the AC
power supply before approaching the motor and belts.
Opening any of the plexiglass doors which enclose the ASRS2 will automatically and
immediately halt all movement of the ASRS robot. Upon closing the door, movement will
Note
resume.
ASRS
Most ASRS systems are pre-assembled units that have to be placed near a conveyor station
so that pallets can be loaded/unloaded. If you customize the ASRS make sure that the
tending robot can reach all relevant elements and optimize the layout with respect to the
tending time of the robot.
Refer to the instructions provided with your ASRS and/or OpenCIM cell.
Barcode Reader
The standard Barcode reader is normally mounted within robot reach on the conveyor next to
the ASRS stop station in order to check outgoing and incoming template IDs. It requires a
5.6V DC power supply and a RS232 connection either to the Station PC or to the robot
controller.
Refer to the instructions provided with your barcode reader and/or OpenCIM cell.
Pneumatic Devices
Pneumatic devices in a station (pneumatic door, fixtures, caliper, air blows, etc.) including
position sensors are normally interfaced through the I/Os of the robot controller. They can
also be controlled by a separate PLC if requested by the customer. In any case, pneumatic
devices require the appropriate supply of compressed and conditioned air.
Refer to the instructions provided with the specific device and/or OpenCIM cell.
Templates
Templates are used to transport parts within the system. Templates, which have a grid of
holes together with different sized pins, allow flexible adjustment for different parts in a
similar way to the palletizing racks. Make sure the pins are arranged identically on all
templates which will hold identical parts.
Refer to the instructions provided with the OpenCIM cell.
Network
It is possible to operate the OpenCIM on any desktop or laptop PC which complies with the
required hardware specifications in which a network board (adapter) has been installed,
providing that you have installed the software driver which enables the adapter to work with
the Windows Operating System. For further details, see Network Setup. Network wiring,
which is documented in the communication layout, is performed through a hub.
Network Setup
Once Windows has been installed and all PC devices (CD ROM drive, mouse, graphic card,
network card, and so on ) have been set up on each PC that is to be used in the OpenCIM
network, set up the network as described in the following procedure:
To set up the network:
1. Define the Network Workgroups and computer names. Computer names are case-
sensitive. It is recommended that you use names such as these:
Network Workgroup CIM
CIM Manager PC CIM-MANAGER
Station PCs CIM-PC1, CIM-PC2, etc. on which the logical workstations
(WS1, WS2, etc.) of the CIM are located
2. Set the TCP/IP network protocol as your communication protocol. Select the IP address
as follows: If your network Workgroup is part of a global network (i.e. is connected to a
server) choose the option: Obtain an IP address automatically.
If your network workgroup is local (i.e. not connected to a server) set the IP address, for
example, as 200.1.1.1 and increment the last digit for each additional PC.
For all PCs in the CIM, specify the same subnet mask, for example, 255.255.0.0. For
details, contact your network administrator.
3. If you are using more than one PC, it is a good idea to verify that the PCs are connected
to the network.
To see the names of the connected PCs, follow one of the procedures outlined below.
In Windows XP:
Click Start | My Network Places | Entire Network (In the Other Places section area
on the left of the window.)
In Windows Vista/7:
Click Start | Network
If you dont see the PC names, wait a few seconds and press F5. If the names are still
not displayed, check the network setup again.
In XP, for the Web Server to be installed, the installation CD must be inside the
computer.
Note
Project Manager can also be initialized by clicking on Project Manager which can be
accessed by clicking Start | All Programs | OpenCIM.
The OpenCIM Applications, CIM Manager and CIM Setup are both activated
from the Project Manager application which can be launched from the desktop shortcut icon
or from the OpenCIM popup menu
Refer to Chapter 5, CIM Project Manager for further details.
A shortcut to the folder containing the projects that were installed is also added to the Desktop
and the Start menu.
In Windows XP:
To install the IIS manually in Windows XP, you are required to insert the Windows XP
Operating System CD into the CD drive and follow these steps:
1. From the Windows Start menu select Settings | Control Panel | Add or Remove
Programs
2. Select Add/Remove Windows Components
The Windows Components Window is displayed as shown in Figure 4-12.
Note
In order for the Web Viewer to work when the firewall is enabled, Port 80 in the firewall
must be opened.
Note
Modes window, accessed from the Modes button on the CIM Manager toolbar, as
described in Modes Dialog Box in Chapter 6, Operating CIM Manager. In addition, the
HTTP protocol must be enabled in order to access the Web Viewer.
If you have not yet installed Viewflex, click Skip to continue the installation process.
Note
If you have not yet installed Scorbase, click Skip to continue the installation process.
Note
In Windows Vista/7:
1. Click Start | Computer.
2. Browse to and right-click the required folder.
3. Select Properties | Sharing | Advanced Sharing (if you are not the administrator you
will need to enter the user name and password).
On the Station PCs, map the drive of the Manager PC (where the projects are installed)
through the network, as follows:
1. Select and right-click My Computer.
2. Select Map Network Drive.
3. Select a free drive and write the path for the Managers projects directory.
For example: Drive E: <path> \\Manager\Projects.
4. Check Reconnect at Logon and click OK.
On the Remote Graphic Display Station PC, map the drive of the Manager PC (where the
OpenCIM shared directory is located) through the network, as follows:
1. Select and right-click My Computer.
2. Select Map Network Drive.
3. Select a free drive and write the path for the Managers projects directory.
For example: Drive E: <path> \\Manager\OpenCIM.
4. Check Reconnect at Logon and click OK.
Other Software
An OpenCIM system can include many devices which require additional software (e.g.,
Vision Systems, CNC machines, CAD/CAM, etc.).
Refer to the documentation and software installation instructions provided with each device.
configured the Hardware Setup, click the Search Home icon to home the robot.
Note: Scorbase must be in On-line mode before configuring the Hardware Setup. To change
to On-line mode, select Options | On-line from the Menu bar.
For more information on configuring Scorbase, refer to the Scorbase for SCORBOT-ER 4u
and Scorbase for ER 9Pro/ER 14Pro User Manuals.
1. Activate the Scorbase software, by double clicking the Scorbase icon on your
desktop.
2. From the Scorbase Main Window select Options | On-line to activate on-line mode and
click the icon to home the robot. Refer to the Scorbase User Guide for additional
details on homing and recording the robot positions.
3. Select File | Open Project and navigate to the required project file for this station. For
example:
In Windows XP:
\\CIM-MANAGER\Documents\intelitek\OpenCIM\projects\M-CIM-
SCBS\WS1\ROBOT1-program sample\Station1.WS.
In Windows Vista/7:
\\CIM-MANAGER\Public\Documents\Intelitek\OpenCIM\Projects\M-CIM-
SCBS\WS1\ROBOT1-program sample\Station1.WS.
Select the Reload last Project at Startup from the Options menu, to load this project
automatically the next time you load Scorbase.
Notes
Project Manager .
OR
The CIM Project Manager window appears displaying the User Projects tab, as shown in
Project Manager Main Window in the following section.
A 3D model of the selected project is shown below the list of project names and
descriptions when 3D Model is selected from the View Menu. See View Menu below.
Notes
View Menu
The following table contains a brief description of each option in the View menu.
Option Description
Toolbar Shows or hides the OpenCIM toolbar.
3D Model Shows or hides a 3D view of the selected project, in the 3D Model Display
area.
Tools Menu
The following table contains a brief description of each option in the Tools menu.
Option Description
CIM Manager Activates the CIM Manager application, with the selected project from the
User Projects list.
CIM Setup Activates the CIM Setup application, with the selected project from the
User Projects list.
Login as Enables you to log in as an administrator.
Administrator
Move to Moves the selected project from the User Projects tab to the Archive tab.
Archive Enabled for administrator's only.
Move to User Moves the selected project from the Archive tab to the User Projects tab.
Projects Enabled for administrators only.
The following table contains a brief description of each option on the CIM Project Manager
toolbar:
Option Description
New: Enables you to add a new project to the list.
Move to Archive: Moves the selected project from the User Projects
tab to the Archive tab. Enabled for administrator's only.
Move to User Projects: Moves the selected project from the Archive
tab to the User Projects tab. Enabled for administrators only.
Help: Displays the OpenCIM online help.
Figure 5-3: CIM Project Manager User Projects Tab 3D Model View
The options in the right-click menu shown above are described in the Project Manager
Toolbar and Project Manager Main Window sections of this chapter.
The options in the right-click menu shown above are described in the Project Manager
Toolbar and Project Manager Main Window sections of this chapter.
Adding Projects
You can add new projects from the User Projects tab in the CIM Project Manager window.
After you have created your project you can then activate the CIM Setup or CIM Manager
applications for the selected project.
To add projects:
1. In the User Projects tab, click New on the toolbar. The Save As dialog box is
displayed.
Importing Projects
The Project Manager enables users to import existing CIM projects into the User Projects tab
from a specified directory.
To import projects:
1. From the User Projects tab, select Import . The standard Open dialog box is
displayed. Navigate to select the file to import and click Open. The Open dialog box is
displayed.
2. Navigate to the required directory and select the project (containing the *.O2C format)
that you want to import.
Exporting Projects
The Project Manager enables users to export an existing CIM Project from the User Projects
or Archive tab to a specified directory, for future reference.
To export projects:
1. From the User Projects tab, select the project that you want to export.
2. Select Backup from the toolbar. The standard Save As dialog box is displayed.
Navigate to select the directory to export and click Save. The project will be saved in
the selected directory.
Copying Projects
The Project Manager enables users to create a copy of the selected project by saving it under
a new name. The new project is then displayed in the list of projects in the User Projects tab.
To copy projects:
1. From the User Projects or Archive tab, select the project that you want to copy, and
The Save As option always displays the new project to the User Projects tab (even when you
select this option from the Archive tab).
Note
2. Click . Delete. The selected project is removed from the User Projects list.
2. Select CIM Manager to activate the CIM Manager application, enabling you to
control all the activities of the OpenCIM cell.
(For further details refer to Chapter 6, Operating CIM Manager).
2. Select CIM Setup to activate the CIM Setup application, enabling you to edit your
simulated CIM cell of the selected project.
(For further details refer to Chapter 8, OpenCIM Setup).
click Move to Archive. The selected project is removed from the User Projects tab and
displayed in the Archive tab.
Utility Programs
The following table contains a brief description of each option in the Utility Programs menu:
Option Description
MRP Displays the CIM MRP window, enabling you to create a list of customers,
define the products ordered by each customer, and generate a manufacturing
order.
Machine Displays the CIM Machine Definition window enabling you to define the
Definition machines and the specific processes that the machines will perform.
Optimization Displays the CIM Optimization Manager enabling users to select machine
Definition queue algorithms and define their weight.
Part Definition Displays the CIM Part Definition window, enabling you to define the parts
that the CIM cell can manufature, including available parts and the parts
that need to be manufactured. These include: Supplied Parts, Product Parts
and Phantom Parts.
Performance Displays the CIM Performance Manager for viewing and analyzing
Analysis information generated form the manufacturing cycle.
Report Displays the CIM Report Part Definition window, enabling you to generate
Generator and print various reports from the database. These include, part definition
reports, machine definiton reports and more.
Scheduler Displays the CIM Scheduler window, enabling you to plan, coordinate and
Gantt track variuos production schedules. For further details refer to CIM
Scheduler.
Storage Displays the CIM Storage Manager window which manages and keeps track
Manager of parts in storage and informs the system of the part location.
Window
The following table contains a brief description of each option in the Windows menu:
Option Description
Device Displays the Device View window containing a lists of all the devices in the
CIM cell.
Event Displays the Event View window containing a list of events that will be
generated by OpenCIM simulation engine when Run is activated.
Leaf Displays the Leaf View window containing the production activities
occurring in the CIM cell.
View
The following table contains a brief description of each option in the View menu:
Option Description
Toolbar Shows or hides the CIM Manager toolbar.
Help
The following table contains a brief description of each option in the Help menu:
Option Description
About Displays the About OpenCIM Manager window contaning the current
software version information.
Help Displays the OpenCIM Online help.
Registration Displays the registration dialog box enabking you to perform various
registration options, such as obtain your software license from Intelitek's
website, or by e-mail, fax or phone.
The following table contains a brief description of each option on the CIM Manager toolbar:
Option Description
Start: Loads the production work order (A-Plan). Opens communication
channel. This sends a command to reset (INIT) all device drivers. The
run arrow turns blue, and the stop button turns red, indicating that they
are available for use. The production plan will appear in the Program
View screen.
The CIM time counter indicates the time elapsed since the onset of the production cycle.
The PLC Status Bar, informs us whether or not the connection is active.
Viewing Area
The Viewing area enables you to monitor various aspects of the production cycle on a real-
time basis by selecting one of seven tab views. By default, the Graphic Display tab is
selected and the viewing area displays 3D graphic simulation of the CIM production cycle.
For further details on the tabs displayed in the Viewing area, refer to Graphic Display and
Tracking.
Order View
The Order View, located below the toolbar in the left portion of the window, displays data
regarding the order of parts and their production status.
Device View
The Device View, located below the toolbar in the right portion of the window, displays data
regarding the activity taking place in the devices during the production process.
Status Bar
The applications status bar, located at the bottom of the window, displays the status and
location of the application, such as the current operation mode and the location of the
WSO.ini file used by the manager.
Information Bar
The Information Bar displays general messages that occur during production, such as Order
is in progress and so on.
The MODES Dialog Box is displayed by clicking the CIM Modes icon on the toolbar.
This dialog box enables you to define the current modes that are active in the CIM Manager,
such as, whether the CIM Manager is working in Real Mode or Simulation Mode, whether
the Web Viewer is activated and so on. The modes defined in the MODES dialog box are per
project.
Windows Vista/7:
\Users\public\Documents\Intelitek\OpenCIM\Projects\
<project name>\setup\opencim.ini.
3. Find the NUMCIMULSOCKETS in the [networking]
key and change it to the required number of cim
simulations.
4. Click Save.
Note
If the Graphic Display is not activated on any PC, click No,
otherwise the manager will work very slowly.
Refer to Chapter 4: Software for Workstation PCs for
information on installing the Remote Graphic Display.
Once installed, the Remote Graphic Display can be launched via
1. From the Project Manager application, select the required project and click CIM
Manager. The CIM Manager main window is displayed, as shown in CIM Manager
Main Window.
2. Select the Modes icon on the toolbar. The MODES dialog box is displayed.
3. Select Simulation Mode option, and if required adjust the simulated speed and define
additional options, as described in the CIM Modes Dialog Box, and click Save.
4. Verify that the Graphic Display tab is selected and click the Reset Storage button
on the CIM Manager toolbar.
5. If required, you can select Utility Programs | Scheduler Gantt to view the production
schedule.
6. Click the Start button to start, and click Run . The selected CIM Cell is now
running in simulation mode.
Before starting actual production, make sure you are in compliance with all the safety
measures detailed in Chapter 3, Safety.
Warning!
button.
8. At each station, home the robot and initialize all the equipment.
9. On the PC that contains the CIM Manager, perform the following:
2. Select the Modes icon on the toolbar. The MODES dialog box is displayed.
3. Select the Real Mode option, and if required define additional options, as
described in the CIM Modes Dialog Box, and then click Save.
4. If required, you can select Utility Programs | Scheduler Gantt to view the
production schedule.
5. Click the Start button to start, and click Run . The selected CIM Cell is
now running in real mode.
You can turn on OpenCIM workstation PCs and hardware in any order.
There is no mandatory boot-up sequence. You can also reboot a PC as long
Note
as it is not in the middle of an operation or communicating with the CIM
Manager. If you reset a PC, you do not need to reset other workstation PCs
connected to the OpenCIM network. When the PC boots up, its applications
will resume communication with other PCs on the OpenCIM network.
Order View
The Order View is a copy of the Manufacturing Order. It is the most basic of the available
views.
Leaf View
The Leaf View provides a detailed description of the production activities of the CIM cell,
describing the current operation being performed on each item and the operation that will
immediately follow.
Message History
Sort by Machine: Shows the activities of machines and the parts they
process.
Alternatively, select Display | Sort by Machine from the CIM Scheduler
menu bar.
Shows the progress of parts, and the machines which process them.
Alternatively, you can also select Display | Sort by Part from the CIM
Scheduler menu bar
Enables you to clear the scheduler data .(Enabled in Online mode only.)
Alternatively, select File | Clean from the CIM Scheduler menu bar.
Displays the Load Data dialog box, enabling you to load additional
production schedules.(Enabled in Offline mode only.).
Alternatively, select File | Open from the CIM Scheduler menu bar.
Displays the Save as dialog box enabling you to save the current
production schedule.
Alternatively, select File | Save As from the CIM Scheduler menu bar.
Display
Options
Tip:
To speed up the simulation, change the value of the
simulation speed in Modes Dialog Box.
After you have generated a planned schedule, you can run the CIM Manager in real mode in
order to track and display the actual schedule, and see how it compares with the planned
schedule.
Status Messages
When a device performs an operation on the part, its device driver transmits status messages
to the CIM Manager reporting the outcome The CIM Manager forwards these messages to
the Graphic Tracking module, which then updates its display accordingly.
Examples of these messages include:
Command Response Messages: A device driver responding to a
command sent from the CIM Manager, or a device driver responding
to a command sent from another device driver (such as, a CNC
device driver responding to commands sent by a robots ACL or
Scorbase device driver to open and close its door).
Pass Messages: The PLC device driver sending a Pass message
indicating that a pallet that is not needed at this station has just gone
by. Pass messages are generated only to allow the Graphic Tracking
module to update its conveyor display, and are not used by the CIM
Manager or any other CIM entity.
Redirect Camera: Defines the position that will be in the center of the
image.
Follow Me Camera: Enables you to focus on the location of specific part
during a production cycle.
Drag Scene: Enables you to pan the CIM cell left, right, up and down.
Top View: Places the camera on top of the cell at the center of the image
Save Camera Position: Saves the current position of the graphic dispay
screen until the next time you enter the CIM Manager application.
Toolbar View: Displays or hides the IDs of the objects, templates, parts,
and pallets, each of which is described below.
Show Name:Displays the names of the objects that currently exist in the
CIM cell.
Show ID:Displays the object IDs that exist in the current CIM cell.
Show Pallets: Displays the pallet numbers that are currently on the
conveyer.
Show Templates: Displays the IDs opf the templates in the CIM cell.
Show Parts: Displays the IDs of the parts in the CIM cell.
In addition, the following options enable you to change the view of the CIM cell:
Zoom In/Zoom Out: Zooms in and out of the image by pressing the
right mouse button and moving it forward or backward.
Rotate the Image: Rotates the view of the image by pressing the
right mouse button and moving it to the right/left.
Moving the Camera Up/Down: Use the windows scroll bar to
adjust the viewing angle of the image.
Alternatively, the viewing angle can also be adjusted by scrolling the mouse wheel.
The Graphic Display of a working OpenCIM cell is displayed in the CIM Manager window
and it can also be displayed on another PC (WebViewer application and Remote Graphic
Display.) It is possible to display three different 3D views at the same time on the same
screen as shown in Figure 6-17.
Note When the Simulation window opens, it always displays the view that was displayed
when you last closed either the Graphic Display or the Virtual CIM Setup window.
To manipulate the views:
1. To change the angle of the overhead scene, place the cursor on the
vertical scroll bar and drag it up and down. (It is recommended that
you click on the vertical scroll bar up and down arrows.)
Procedure
Manipulating the 2. To rotate the scene, place the cursor anywhere on the screen and:
Graphic Display Click the right mouse button and drag to the right to rotate the
display counterclockwise.
Click the right mouse button and drag to the left to rotate the
display clockwise.
3. To zoom the scene, place the cursor anywhere on the screen and:
Click the right mouse button and drag up to zoom in.
Click the right mouse button and drag down to zoom out.
The Text menu allows you to select the kind of captions you want to include in the graphic
display. Only one kind of text can be selected at a time.
None No text. Select None to remove the currently displayed caption. You may
then select another kind of text. (Note that there is no checkmark in the
menu to indicate your selection.)
Name Name of machines and devices.
Ext. ID External ID number, as defined in the Virtual CIM Setup.
Pallets Displays the ID number of the pallets.
Templates Displays the ID number of the templates.
Parts Displays the ID number of the parts.
The File menu offers the following options:
Open Loads a new graphic CIM cell. Do not use.
Exit Quits the Graphic Display module.
Toolbar
Option Description
Saves all machine records to disk.
Select a machine from the machine name drop-down list. The names that
appear in the list are defined in the Virtual CIM Setup.
Note
For different machines that can perform the same process, you should enter
the same process name. Likewise, do NOT use the same process name to
refer to processes on different machines which do not perform the same
operation on the same part.
The following reserved words cannot be used as Process names:
ALLOC GET PACK
ASSEMBLY GET_FIX PLACE
BASE MAKE PROCESS
CNC MOVE QC
DELIVER NEXT RENAME
END_ASSEMBLY NOP TARGET
FREE ONFAIL TRANSFER
These procedures represent a simplified example. When defining more complicated applications,
entries to other fields will also be required.
Note
If you define the part as Supplied, the Part Process table will be replaced by a section
containing data regarding the supplier and supplied material, as shown below:
Toolbar
Option Description
Defines new part
Information Bar
Option Description
Defines the template type (01-99) whose pin arrangement can
accommodate the selected part.
Defines the types of racks/feeders that are capable of
accomodating the selected part.
Defines the color of the parts that can be viewed on the
conveyer. You can define a different color for each part. The
part color will change after the work on the part is completed.
Note:
The color will not be changed for custom parts which are
provided in the OpenCIM installation.
ModelBegin
TransformBegin
Color 0.0 1.0 1.0
Surface 0.4 0.3 0.2
Ensure that there are no more than 1000 polygons in the CAD file.
Note
See the next section for details on adding the file to OpenCIM an project(s).
For more information on RWX files, refer to the RWX help file which is provided with the
OpenCIM installation, and is located in the following directory: Program
files\intelitek\opencim\sources\Graphics\RW\Documentation.
For a machine that performs assembly operations, the parameter string specifies where to put
the part that is being added to the assembly. If this target location contains compartments,
you can add an optional index for the compartment number.
The table below details how parameters are used by several devices:
Device Example Description Note
ROBOT- 1, 4 type of test, If maximum value is
VISIONpro minimum value, omitted, the minimum
[maximum value] value represents the
single acceptable value.
Figure 7-6: Part Definition Form for Supplied Parts Defining a Part
9. Continue on to the procedure Defining the Product as described below.
9. Click to save .
10. You can now generate and view a Part Definition Report by using the
Report Program.
The above listed procedures represent a simplified example. When defining more
complicated parts it may be necessary to:
Note
Enter products in the Subpart column of the Part Process Table.
Use only predefined process names in the Process column of the Part
Process Table.
Add parameters.
Main Menu
Option Description
File Contains these file options: Save to DataBase, Reset Storage, Create
Default Storage, Clear Temporary Storage, Initialize Storage, Exit (from
Storage Manager screen). These options also appear as tool buttons in the
Toolbar (see below).
Edit Contains these part editing options: Add Part to Storage, Delete Part from
Storage.
Help On-line help.
Toolbar
Option Description
Saves the current Storage configuration to the database.
When you activate Initialize Storage, you must close the Manager window
and reopen it again in order to update the storage database.
Note
All devices that do not contain a part or a template at the beginning or at the end of a
complete production round are considered temporary storage devices. (e.g. robot, buffer,
Note machine, conveyor pallets, etc.).
When editing the storage parameters you must click the create default storage icon
Note for the parts to be added.
Toolbar
The following buttons apply only to the Customer Order table. Any changes you make using
these buttons will not be stored in the database until you click Save.
Option Description
Adds a blank row to the Order table.
Note: You can only order parts that have been defined as type Product
or Supplied. Phantom parts cannot be ordered.
Tool Bar
You can switch to the other order forms by clicking the appropriate tab.
The following buttons apply only to the Manufacturing Order table. Any changes you make
using these buttons will not be stored on disk until you click Save.
Note You can only order parts that have been defined as type
Product. Products that have been defined as type Phantom
or Supplied cannot be ordered.
Total Quantity The total number of units ordered which must be manufactured on the
specified day.
Initial Quantity The number of parts to be extracted from the ASRS when production
begins. The initial quantity is a number that can range from 1 (one) up to
the value of the total quantity. Usually the value is 1 or 2. This field
allows you to optimize the manufacturing process. (Refer to Optimizing
the Scheduling in OpenCIM in Chapter 8, CIM Setup, for more details).
Priority The priority of this order (1-9). A priority of 1 is most urgent, 9 is least
urgent. The CIM Manager uses this priority value to determine the
sequence in which to produce orders.
Due Date The shipping deadline for the part, as generated by the MRP.
Note To order other products at this time, add a new line by right-
clicking the last cell in the order, choosing Insert After, and
repeating steps 2-6.
6. Click Save to save the entries without changing the last submitted
production plan (A-Plan).
7. Click the MO icon to submit this order and create a new production
plan.
You can now operate the CIM Manager and start production.
Toolbar
You can switch to the other order forms by clicking the appropriate tab above the table.
The following buttons apply only to the Purchase Order table. Any changes you make using
these buttons will not be stored on disk until you click Save.
Option Description
Adds a blank row to the Purchase Order table.
Note: You can only order parts that have been defined as type
Supplied.
Quantity The number of units you want to receive from the supplier.
Cost The cost per unit, as defined in the Part Definition form.
Due Date The date on which the part must be received from the supplier.
1. In the Purchase Order form, click New Supplier to open the Supplier
Data box.
Procedure 2. In the Supplier Data box, fill in the Name of the Supplier, and other
Defining a New Supplier information (e.g., address or phone number). Click Save. The
Supplier box closes and this suppliers name is added to the Supplier List.
3. If you want to make any changes to specific supplier information,
select the Supplier from the list, click Edit Supplier and make the
desired changes. Note that you cannot change your name when editing
supplier details.
Note To order other products at this time, add a new line by right-
clicking on the last cell in the order, choosing Insert After, and
repeating steps 2-6.
7. If you want to order more parts in the same order, add a new line by
right clicking on the last cell in the order, choose Insert After and
repeat steps 2-6.
8. After you have finished filling in the order for a specific customer,
create the order by clicking MRP.
9. Click the PO button to activate the Report Generator, which will
display or print the Purchase Order.
Even though each queue is managed separately for each machine, the performance is tested for
the overall system.
Note
Toolbar
Option Description
Save: Saves the Machine Queue form to the database .
Refresh: Refreshes the Machine Queue form to the entries that were defined
before the last save.
Queue Per Machine: Displays the list of machines and their alogirithms,
enabling you to select a different algoritm and weight for parts in the queue for
each machine.
Queue Per System: Displays the system algorithm, enabling you to select the
same alogorthim for parts in the queue for all the machines in the system.
Enable Dependancy: Enables finish-to-finish dependency. Meaning, the
algorithms will plan the manufacturing process, to enable all tasks to finish
together (for the overall system). This is performed, for example, by starting
the manufacturing process with the part containing the longest process time
and ending with the part containing the shortest process time.
Disable Dependancy: Disables finish-to-finish dependancy.
Figure 7-25: Machine Queue Form Tab in CIM Optimization Definition Window
The Machine Queue Form contains the following fields:
Column Description
Machine Contains a predefined list of all the machines defined in the CIM Setup.
Algorithm The name of the algorithm defined for the parts that are in the queue to the
Name selected machine. You can select the required algorithm from the
dropdown list, as follows:
FIFO (First in First Out): Parts are processed according
to first in first out. Meaning, the parts that arrive first in
the queue are processed first.
Maximum Priority: Parts are processed according to their
priorities (1 through 10) that were defined in the CIM
MRP window. Meaning, the parts with the highest priority
(such as, 1) will be processed first.
Random: Parts are processed based on a random selection
basis.
Shortest Process Time: Parts are processed according to
their process time period. In this case, the parts with the
shortest process time will be processed first.
Algorithm Enables you to enter the weight of the selected algorithm (the total weight
Weight of all algorithms must be 100).
Note Enables you to enter a text comment for reference purposes.
Status Bar
11. From the CIM Manager window click the Start button.
Click OK at the confirmation message and then click and
observe the CIM manufacturing cycle.
12. Select Window | Machine Queue. The Machine Queue View
window is displayed.
The system works in parallel on orders with both high and low priority, taking into
consideration that orders with high priority are treated first.
Note
When activating the CIM Performance Analysis utility, ensure that the simulation speed has
been set to 1 in the Modes window.
Note
Toolbar
Option Description
Save: Saves the current manufacturing cycle run performance report to the
database, using the Optimization settings defined in the CIM Optimization
Definition. The Save Report window is displayed, enabling you to add the
cycles description and save it to the PERFORMANCE_X.DBF file. (The
system also saves the corresponding optimization file.)
Refresh: Refreshes the view to display the results from the last manufacturing
cycle run.
Show Single: Displays the Choose Performance File window, enabling you to
select and view a previously saved PERFORMANCE_X.DBF file.
Information per machine includes, total process time, efficiency, Max Queue
Length, Production cost and more. For further details, refer to the Single
Manufacturing Cycle Performance Table, described in the next section.
Show Summary: Displays a summary of all the previously saved
manufacturing cycles. Information per cycle includes, Total Process Time,
Efficiency, Max Queue Length, Production Cost and more. For further details,
refer to the Summary of Manufacturing Cycle Performance Table, described in
the next section.
Reset Run ID: Resets the run ID number to 0. This option is used for example,
when a new Manufacturing Order is created.
Delete All: Deletes all previously saved reports from the database.
Each of the columns in the Part Report relates to a specific field in the Part Definition form,
as follows:
Each of the columns in the Subpart Report relates to a specific field in the Part Definition
form.
Each of the column headings in the Order Report relates to a specific field in the
Manufacturing Order form, as follows:
Each of the columns in the Machine Report relates to a specific field in the Machine
Definition form, as follows:
Each of the columns in the Process Report relates to a specific field in the Machine
Definition form, as follows:
Each of the column headings in the ASRS Report relates to a specific field in the Storage
Definition form, as follows:
Heading Description
Part Name The name of the part as defined in the Part Definition form or in the
Virtual CIM Setup.
Device The name of the robot, machine or conveyor that performs the operation,
as defined in the Machine Definition form.
Action Robot: (pick-and-place)
Assembly: (base and pack)
Conveyor: (deliver) or machine (the name of process as defined in the
Machine Process Table).
Subpart Name Robot: the number of a template or the name of a part.
Machine: the name of a part or material.
The following is a description of each of the columns in the Location Status Report :
Heading Description
Location The name of the location.
ID The location ID (numeric) as defined in the Virtual CIM Setup.
Index Indicates the exact location on a device which has more than one
location for a part..
Part Name The name of the part in this location as defined in the Part Definition
form.
A-Plan Report
The A-Plan Report is a detailed description of the manufacturing process to be performed by
the CIM system. The A-Plan is created when you click MO in a completed Manufacturing
Order form. The A-Plan is a table of sequential instructions which the CIM Manager
executes in order to produce the products being ordered.
This report is intended for the more experienced user. See Experimenting with Production
Strategies Using the A-Plan in Chapter 11, OpenCIM Programming, for detailed information
on how the part will be produced.
The following is an example of an A-Plan Report.
User-Defined Report
The User-Defined Report allows you to design and customize a report to the exact
specifications of your CIM system. You can create an unlimited number of User-Defined
Reports.
The Report Generator program employs Seagate (Microsoft) Crystal Report (also available
in Visual Basic) to generate the OpenCIM reports. The Crystal Report program necessary to
create your own user-defined report is not included with the OpenCIM software and must be
purchased separately. Refer to the documentation provided by the Microsoft Visual Basic
Crystal Report for instructions on how to create a report.
Create Menu
The following table contains a brief description of each option in the Create menu:
Option Description
Group The system automatically creates shortcuts to loaders for drivers of
all the workstations in the selected project. This group contains
shortcuts to loaders that are required in order to operate the CIM
cell defined by the Virtual CIM Setup.
The group can be accessed from the following directory path:
Windows XP: [default system drive (for example C:)]\\Documents
and Settings\All Users\
Documents\Intelitek\OpenCIM\Projects\<name of
project>\OpenCIM<name of project>
Windows Vista/7: [default system drive (for example
C:)]\Users\Public\Documents\Intelitek\OpenCIM\Projects\<name
of project>\OpenCIM<name of project>
Setup File Prompts you to confirm the overwrite of the SETUP.CIM file. For
full details, refer to Chapter 12, Inside OpenCIM
Loader Section Creates a file WSn.INI for each station (e.g. WS2.INI).
ACL DMC File Prompts you to confirm the overwrite of the DEVICE.DMC file.
For full details, refer to Chapter 9, OpenCIM Device Drivers, and
Chapter 12, Inside OpenCIM.
View Menu
The following table contains a brief description of each option in the View menu:
Option Description
Show Names Displays the names of all devices in the scene.
Show IDs Displays the device ID numbers.
Show Positions Displays the position coordinates of all devices.
Redirect Camera Allows you to select a different focal point in the scene.
Drag 3D Frame Allows you to drag the cell.
Camera Top Displays the overhead view of the scene.
Scene Origin Displays the scene origin, e.g. coordinate 0,0 of the room.When
selected, a red cross is displayed in the center of the shop floor.
Toolbar Displays or hides the toolbar.
Status Bar Displays or hides the status bar.
The options in this menu are similar to those in the View menu of the Graphic Display and
Tracking module. For full details, refer to Chapter 6, Operating CIM Manager
Note
The following table contains a brief description of each option on the CIM Manager toolbar:
Option Description
Save:Saves the current placement of all objects in the CIM cell.
New Object: Displays the New Objects dialog box, enabling you to add new
elements to your new CIM cell as descibed, for example, in Adding a
Conveyor.
Delete Object: Deletes currently selected object.
Redirect: Defines the position that will be in the center of the image.
Camera Top: Places the camera on top of the cell at the center of the image,
Drag 3D Frame: Enables you to pan the CIM cell left, right, up and down.
Tip: To see which device driver belongs to an object, click on the object.
From the objects Parameter Configuration menu, select Connectivity|OK.
A line connecting the object and its associated device driver appears on
the screen . (Alternatively, click on a device driver to find its associated
device.)
Green lines show the connections between device drivers and their
associated objects. Red lines show the physical connections between
robots and other objects; i.e., devices that are within the robots reach.
Avoid using too many UNDOs while drawing the conveyor; a faulty display may result.
When drawing the conveyor, do not extend the straight segments too close to the edge. Allow
Tips
enough room for the corner segments.
3. When you have completed drawing the conveyor, click on the button. A chain of
dots will appear in the conveyor.
Tip The first station should immediately follow the starting point of the conveyor, in accordance with
the counterclockwise or clockwise movement of the conveyor. Additional stations should be
placed consecutively in the same direction until you reach the starting point again. It is
recommended that you plan your conveyor in advance to determine the correct location for each
station.
Place stations on straight segments of the conveyor. They cannot be placed on the curves.
Tip
Do not save the conveyor until you have placed ALL stations around the conveyor. Once a
conveyor has been saved, it cannot be altered. To change a conveyor configuration, you
Note
will need to repeat the entire procedure.
Adding Tables
Tables should be placed at every station around the conveyor, either after the conveyor is
created, or after all elements have been placed in the scene.
When you place objects in the Virtual CIM, you do not need to define a height coordinate,
since the system assumes all objects are at their proper heights. All objects will be displayed
at the correct height, even if they are not sitting on tables.
You can select size and color of any table you want to create, but only before you create it.
Once the table is made it cannot be altered. To make any changes in tables properties you
will need to repeat the entire procedure.
It is recommended that you place tables in the Virtual CIM so that objects at the stations will
not appear to float in space.
Notes
1. From the Project Manager main window, click New on the toolbar. The New
Project dialog box is displayed.
3. Select the CIM-1 project and click the Virtual CIM Setup icon on the toolbar.
The Virtual CIM Setup main window is displayed, as shown in Chapter 8, OpenCIM
Setup.
4. Select Edit | New Object. In the New Objects window, double-click General to expand
the tree, and then select Conveyor. The Conveyor dialog box is displayed.
2. From the Project Manager toolbar, select CIM Manager . The CIM Manager main
window is displayed for the CIM-1 project.
3. Select Utility Programs | Machine Definition. The CIM Machine Definition window is
displayed.
4. In the CIM Machine Definition window perform the following:
From the Machine Name list, select EXPERTMILL1, and enter the following
information:
Process Name: PROG_BOX1
File Name: 1.GC
Program: leave blank
Duration: 00:00:25
5. Click Save.
6. Close the CIM Machine Definition window.
7. Select Utility Programs | Part Definition. The CIM Part Definition window is
displayed.
8. In the CIM Part Definition window perform the following:
Select the Supplied Parts tab.
Select File | New Part to define a new part, and enter the following information:
Part Name: CUBE
Part ID: 77
Template Type: 01
9. Click Save, and check the Errors box. The message Save done indicates there are no
errors.
10. Select the Product Parts tab.
11. Select File | New Part to define a new product part, and enter the following
information:
Part Name: BOX.
Part ID: 75
Sub part: CUBE
Process: PROG_BOX1
Template Type: 01
12. Click Save, and check the Errors box. The message Save done indicates there are no
errors.
13. Close the CIM Part Definition window.
14. Select Utility Programs | Storage Manager. The CIM Storage Manager window is
displayed.
16. Click the Create Default Storage icon to save this storage definition as the default
and close the CIM Storage Manager window to return to the CIM Manager main
window.
17. Select Utility Programs | MRP. The CIM MRP window is displayed.
18. From the CIM MRP window perform the following:
1. Select Customer | New Customer. The New Customer window is displayed.
2. In the Name field, enter CUST-A, and if required enter additional information in
the relevant fields.
3. Create two orders for this customer, each one for two parts, but for different
supply dates. (To see a list of parts which can be ordered, open the drop-down list
when the cursor is on the Part Name field. Click to select a part.) For example:
Part Name: BOX Part Name: BOX
Required: 2 Required: 2
Priority: 1 Priority: 1
Due Date: 2 Due Date: 4
19. Save the order by clicking the MRP icon on the toolbar. This runs the MRP
program, which creates a Manufacturing Order.
20. Select the Manufacturing Order tab and select a Manufacturing Order (from the list of
24. From the CIM Manager toolbar click the CIM Modes icon. From the displayed
Modes dialog box, perform the following:
1. In the CIM Mode area, select Simulation mode and enter the simulation speed.
For example x5.
2. In the Remote Graphic Display area, select No. This option refers to the external
graphic display only; the internal graphic display of the CIM Manager is always
active.
3. Click Save to close the Modes dialog box and return to the CIM Manager main
window.
5. Click the Run button to activate (meaning, run the production cycle.)
6. Congratulations. Your CIM cell is in operation! Look at the Order View, Device
View, Program View and Pallets View and follow the progress of the production.
7. Acknowledge the messages Part has been Finished. and Order Finished.
26. From the CIM Manager toolbar click the CIM Modes icon. The Modes dialog
box is displayed.
27. In the Remote Graphic Display area, select Yes and then click Save. Make sure that you
activate the external Graphic Display (see the last step of this procedure) otherwise the
CIM will run slowly.
28. Click the Reset Storage icon on the CIM Manager toolbar.
29. Click the Graphic Display icon from CIM-1 Group (displayed from your windows
Start menu). The CIM Simulation screen will appear. You will see the CIM cell you
created by means of the Virtual CIM Setup in three different 3D views.
30. Return to the CIM Manager screen and perform the following:
1. Click the blue Start button to execute (meaning, load the Manufacturing
Order).
2. Click the blue Run button to activate (meaning, run the production cycle).
3. You also can see your CIM cell in operation by means of the Graphic Display.
This chapter describes the OpenCIM device drivers. Device drivers are interface programs
that translate and transmit messages between the CIM Manager and the various machines
and controllers at CIM stations. It includes the following sections:
Overview of Device Drivers, provides a brief overview of the
OpenCIM device drivers and the devices they control.
Device Driver Control Panel, provides a brief overview of the
device driver control panel that is used for sending commands to the
device.
CNC Device Driver, describes the CNC device driver that controls
various types of CIM machines (lathe, mill and more).
Robotic Device Drivers, describes the robotic device driver that
controls the devices attached to robotic controller (such as, robots,
barcode scanners and more).
Quality Control Device Drivers, describes the quality control
device drivers that control QC devices (such as the laser scan meter)
ViewFlex Device Driver, describes the ViewFlex device driver that
controls the Vision Machine System.
ULS Device Driver, describes the ULS device driver that controls all
operations of the Laser Engraver.
BCR Device Driver, describes the BCR device driver that controls
all operations of the Bar Code Reader.
RFID Device Driver, describes the RFID device driver that controls
all operations of the RFID reader.
PLC Device Driver, describes the PLC device driver that controls
the operation of the conveyor.
Hydraulic Device Driver, describes the hydraulic device driver that
controls the hydraulic station.
Pneumatic Device Driver, describes the pneumatic device driver
that controls the pneumatic station.
Process Device Driver, describes the process device driver that
controls the process station.
.
Figure 9-1: Device Driver Control Panel (ACL)
You must close the status window in order to close the device driver.
The device driver Control Panel is discussed in detail in the section on the ACL device
Note driver. The discussion there is applicable to all other device drivers.
If the CNC machine is connected to the I/O board in the PC, you can observe the effects of a
program by observing the line indicators in the PC-Inputs and PC-Outputs panels in the
Control Panel. In addition, status messages and instructions generated by the program appear
in the Status window.
PC-Input/Output Panel
To display the PC-Input/Output Panel, select from the main menu Operation | Input/Output.
Output Panel
The Output panel allows you to observe and set the state (On or Off) of 16 CNC control
lines. Control lines may be hard-wired to specific CNC functions. Alternatively, the CNC
machine may be configured to activate a certain G-code program associated with a control
line. Check the documentation of your CNC machine for specifics on the use of each control
line.
The PC-Output panel allows you to set CNC control lines on and off by clicking bits in the
appropriate output port. The layout of the panel reflects the way the control lines are mapped
to bits in two designated PC output ports. By using a mouse to click on the bits in the panel,
you can:
Toggle the state of a control line.
Pulse a control line by clicking its bit, waiting the desired interval,
and clicking it again to restore it to its original state.
Input Panel
The Input panel allows you to observe the state (On or Off) of 16 CNC status lines. Status
lines may be hard-wired to specific CNC components. Alternatively, the CNC machine may
use a G-code program to set the state of a status line. Check the documentation of your CNC
machine for specifics on the meaning of each status line. The layout of the panel reflects the
way the status lines are mapped to bits in two designated PC input ports.
The PC-Input panel displays the state of CNC status lines. It cannot be used to change the
value of a status line. Only the CNC machine can change the value of a status line.
Robot Operation
The ACL and Scorbase device drivers contain different interfaces for operating the robot,
each of which is described in the following sections.
Scorbase Device Driver
ACL Device Driver
The ACL and Scorbase device drivers enable controlling the robot from both the
Warning! OpenCIM Manager and Station PC simulataneously. This is useful for
development and testing procedures of the robotic programs. However,it can be
dangerous when operating the CIM system in online mode. Therefore you should
always close the Control Panel to prevent others from tampering with it when the
robot is truned on. Otherwise someone might cause damage if they inadvertently
activate the robot by making selections from the robotic device driver window
(for example, by clicking on the Play From P/P File button) .
Note
The names and the range that appear in the Pick-and-Place
dialog box are taken from the INI file used by this device driver.
It is possible to use a robot as a quality control device. You can write special ACL
programs which perform quality control tests such as:
Tips
Have a robot try to place a part in a mold. If the part is too big, you can detect the
collision. If it is too small, you can detect free play when the robot tries to move
the part after it has placed it in the mold.
You can measure the dimensions of a part by reading the span of the robot's
gripper when it is holding the part.
The following table shows how to set up test parameters for each type of QC device driver:
Check Activates a test on the quality control device. This button only functions
in Real Mode. It is useful for testing communications with the quality
control device. The response from the device appears in the device
driver's Status window.
This button resends the last command message from the CIM Manager as
shown in the fields Low, High, and Type described below. If no
command message has yet been received, the default values are:
Type = 1, High = 0, Low = 0
Success Generates a status message to the CIM Manager indicating that a part
passed its quality control test. Used in Manual mode.
Fail Generates a status message to the CIM Manager indicating that a part
failed its quality control test. Used in Manual mode.
The following fields on the Control Panel show the parameters associated with the last
command that was sent to the quality control device. These values are used when you select
the Check button (described above) to manually send a command to the device.
Option Description
Low The minimum acceptable test value.
High The maximum acceptable test value.
Type An ID number specifying which sort of quality control tests the
device should perform.
The Fail % field allows you to control how the device driver responds when it is operating in
a simulated mode:
Option Description
Fail % Used only in Simulation mode. Randomly determines how often the
simulated test result will be Success or Fail (0% = always
successful, 100% = always failure). Pass/fail results are generated
randomly.
The default failure percentage is read from the parameter
SimulationFailPercent in the device driver's INI file.
Changing this value on the Control Panel affects the current session
but does not save the new value to the INI file.
[LSMDriverDefinitions]
QCReport = Yes
QCReportTemplateFile = VC2_QC.INI
QCReportFileName =
QCReportFileMarker =
QCReportFileDeleteOnStart =
SimulationFailPercent = 20
BaudRate=9600
Parity=None
DataBits=8
StopBits=1
XonXoff=No
MainWindowBkgndColors=40,150,100
MainWindowTextColors=100,50,200
Figure 9-12: Sample INI File Settings for a Laser Scan Meter
Adjustments
Adjustments can be performed ViewFlex.ini files. Each of which is described below.
User Interface
Control Modes
The control modes that the ViewFlex Device Driver can run in are:
Send Fail.
Sample Script
A model is the pattern for which you are searching, and the image from which it is extracted.
The following script is a sample for testing Pass/Fail models. The program attempts to find
the x object (X.mod). If found, Fail is sent (QCR="Fail"). If the object is not found, the
program attempts to find the v object (V.mod). If found, Pass is sent (QCR="Pass"). If
neither is found, Error is sent (QCR="Error").
Debug.Print NumberFound
If NumberFound=1 Then
QCR="Pass"
Else
Insptr.CloseAll
End Function
Warning!
Do not place any objects in the laser machines front cabinet. When the table descends to its
lowest level, it could crash into objects that may have been placed there.
Warning!
Working with multiple files in on-line mode could cause the wrong file to be activated.
In one file mode, the fileload.bat file enables the CIM Manager to automatically download
the specific file that is required for the process and later activate other files as ordered by the
CIM Manager.
At this point, the lasers focal length should always be 2 inches. This ensures that the laser is
focused and produces maximum efficiency.
To manually set the zero point:
1. Press the Z button from the main menu on the machine or from the file display menu.
2. Select the Focal Length option.
3. Place the gauge on the table (if a template is always used, place the gauge on the
template).
Warning! To prevent impact, be careful not to raise the table with the gauge directly
under the lens carriage.
4. Raise the table carefully to the position where the upper chamfered part of the gauge lies
firmly against the side of the focus lens carriage.
5. Continue raising the table to the point where the gauge tilts outwards.
6. Gently lower the table to the exact point where the gauge straightens, i.e., it is aligned
with the side of the carriage. This is the zero point of the laser engraver and the
loading/unloading position of the robot.
7. Select the Set Focal Length option and confirm to set the zero point.
8. Once you have set the zero point, click OK in the ULS device driver to display the
Laser Engraver Device Driver window, as shown in User Interface.
User Interface
The BCR device driver interface is accessed from the CIM DDLoader window, as described
in the following procedure.
User Interface
The RFID device driver interface is accessed from the CIM DDLoader window, as described
in the following procedure.
Deliver Stops the specified pallet when it arrives at the specified station. Select
the desired pallet by clicking on the line with the correct pallet ID. Then
select a station before using this button.
GetFree Stops the next empty pallet that arrives at the specified station. Select the
desired station before using this button.
Free Allows a pallet that was unloaded at this station to continue on the
conveyor and flags it as available (i.e. assigns the pallets destination
station = 99). Select the desired station before using this button.
Release Lowers the piston at the specified station to allow a pallet that is just
passing through this station to continue moving along the conveyor. You
can also use this button to allow a needed pallet to pass if the station is
currently busy. Select the desired station before using this button.
It is NOT recommended to manually select GetFree or Deliver while the CIM is running in
Real Mode. If you do, the CIM Manager will receive an unexpected status message
indicating the arrival of a pallet that did not actually arrive. The CIM Manager will attempt
to recover from this situation by issuing a Free command for this pallet.
Pallet Command Box
You can use the PLC Control Panel as a limited terminal to send commands to a controller.
Commands that you type in the Pallet Command Box are sent out via the PCs serial port
when you press [Enter]. Responses from the PLC are displayed in the Status window of the
device driver.
This capability, which should only be used by PLC programmers, is useful for testing and
debugging PLC control programs.
Simulating a Conveyor
When you want to run a CIM simulation, the PLC device driver can simulate the operation
of pallets moving along the conveyor (when running in Simulation mode or Manual mode).
You can set the following parameters in the appropriate INI file in order to customize the
simulation of the conveyor:
The number of pallets traveling on the conveyor
(SimulationStations)
The number and order of stations around the conveyor
(SimulationPallets)
The distance between stations (SimulationPosPerStation)
The direction in which the conveyor moves
(SimulationDirection)
Note To stop the hydraulic robot program execution, do one of the following:
Press F9 hotkey on your keyboard
Click the Abort button from the Hydraulic Device Driver window.
Click the Emergency Stop button on the front panel of the hydraulic station.
You can then click Continue from Hydraulic Device Driver window to
proceed.(If the Emergency Stop button was pressed, you must first release it
before clicking Continue to proceed.)
4. From the Start menu select Vuniq or double-click the Vuniq icon from your
windows desktop. In Windows Vista/7 you should right-click the icon and select Run
as Administrator. The Vuniq for Windows main window is displayed and the Vuniq
5. From the Windows system tray, right click the Vuniq icon. A popup menu is
displayed.
1. From the Windows system tray, right-click the Vuniq icon. A popup menu is
displayed.
2. Select Application Settings. The Vuniq Applications Settings window is displayed.
3. From the Category area, select Communications, the General tab appears in the
Communications area.
7. Verify that the button is green to indicate that the communication between the
pneumatics station and the computer is working properly.
Note If the
button is not displayed in green press or press the PLC ON
button on the front panel of the pneumatics station.
8. Right-click the Vuniq icon. From the displayed popup window select Quit and
then click Yes at the displayed confirmation message to exit the Vuniq application.
Note To stop the pneumatic robot program execution, press the Emergency Stop button
on the front panel of the pneumatic station.
4. From the Start menu select Vuniq or double-click the Vuniq icon from your
windows desktop. In Windows Vista/7, right-click the icon and select Run as
Administrator. The Vuniq for Windows main window is displayed and the Vuniq
5. From the Windows system tray, right click the Vuniq icon. A popup menu is
displayed.
6. Select Application Manager. The Vuniq Application Manager window is displayed.
1. From the Windows system tray, right-click the Vuniq icon. A popup menu is
displayed.
2. Select Applications Settings. The Vuniq Application Settings window is displayed.
3. From the Category area, select Communications, the General tab appears in the
Communications area.
7. Verify that the button is green to indicate that the communication between the
process station and the computer is working properly.
Note
If the button is not displayed in green press or press the PLC ON
button on the front panel of the process station.
8. Right-click the Vuniq icon. From the displayed popup window select Quit and
then click Yes at the displayed confirmation message to exit the Vuniq application.
3. Verify that the button is green to indicate that the communication between the
process station and the computer is working properly.
Note If the
button is not displayed in green press or press the PLC ON
button on the front panel of the process station.
You can now view the various stages of the process, such as the amount of time that a
specific part remains in a specific bath and so on.
6. From the Gripper area, select the arrow button that is located to the right of the
option. The robot is sent to the home position.
7. Deselect the button and then select the button to enter Real Mode.
8. Click the icon to return to the Main Process Station window (shown in Figure
9-47: Main Process Station).
9. From the CIM Manager main window, select the red Stop icon to stop the
processes in the OpenCIM environment.
10. Correct the problem manually and then press the green Start icon to restart the
process.
Before accessing the Web Viewer, you must first verify that the IIS is installed and that the
the DCOM has been configured (described in Chapter 4, Installation). You must then
Note
verify that the Web Viewer mode is activated (described in CIM Modes, Chapter 6,
Operating CIM Manager).
1. From your Start menu, click the Internet Explorer icon. The Internet Explorer
main window is displayed.
2. In the Address field enter the IP or hostname of the computer containing the
CIM Manager that you want to install from, as in the following examples:
http://<hostname>/webcimviewer/start.asp
OR
http://<IP Address>/ webcimviewer/start.asp
The OpenCIM Web Viewer Initial page is displayed.
1. From your Start menu, click the Internet Explorer icon. The Internet Explorer
main window is displayed.
2. In the Address field enter the IP or hostname of the computer containing the CIM
Manager that you want to access according to the following examples:
http://<hostname>/webcimviewer/start.asp
OR
http://<IP Address>/webcimviewer/start.asp
The OpenCIM Web Viewer Initial window is displayed, as shown in Installing the Client.
3. Click Start. The Open CIM Web Viewer appears displaying the Graphic Display tab,
as shown in Graphic Display Tab.
If the CIM Manager of the computer that you want to access is currently inactive, an
information dialog box is displayed, informing you that CIM Manager that you
Note
currently want to access is currently closed.
Figure 11-1: Robot Movements Controlled by Separate GET and PUT Programs
GET (from buffer 2)
1. Move the empty robot arm in a straight line through the Free Movement Zone to a point
directly above the buffer.
2. Lower the arm and grab the part from the template sitting in the buffer.
3. Raise the arm back up to the Free Movement Zone directly above the buffer.
PUT (under the camera)
1. Move the robot arm holding the part through the Free Movement Zone to a point above
the ROBOTVISIONpro camera's viewing area.
2. Lower the arm and set the part within the camera's field of view.
3. Raise the arm back up to the Free Movement Zone directly above the camera.
At end of the GET, the robot is holding the part in the Free Movement Zone while it waits
for the PUT program to begin executing.
At the end of the PUT, the robot is empty and it waits in the Free Movement Zone for the
next GET operation.
The names of the Robotic programs are different for ACL programs and Scorbase programs, as
follows:
Note
GTXXX and PTXXX are used for ACL programs.
GETXXX and PUTXXX are used for the Scorbose programs.
When planning robot movements, take into consideration obstacles caused by parts under
production. For example, after placing a part, the robot may not be able to retrace its
Tip
movements without colliding with the part it just placed.
Also note that the same part at the same location may require two different robot positions
before and after an assembly operation.
In order to avoid delaying the conveyor unnecessarily, send the Start and Finish messages as
soon as possible when writing GET and PUT programs that deal with moving a part template
Tip
to/from a conveyor pallet.
For most other devices, the Finish and End messages typically come one right after the other
at the end of the PUT program.
Sending Response Messages from the Scorbase Software to the CIM Manager/Device
Driver
The Send Message window is used for creating the Send Message command in the Scorbase
program. When the program is activated and begins to run, the Send Message command is
then forwarded to the CIM Manager or device driver, as described in the following
procedures:
To send response messages from Scorbase to the CIM Manager:
1. From the Scorbase main window, select Window | Teach & Edit. Select Options | Pro
from the Menu bar. From the Workspace window expand the Program Flow tree and
double click SendMessage. The Send Message window is displayed:
In the Send To dropdown list the Manager option is displayed by default. In the Task ID field
the TASK_ID option is displayed by default.
Note
3. From the Type dropdown list select the required response message as follows:
$Start
$Finish
$End
4. Click OK. The response message is displayed in the program window.
This procedure is applicable only when the Scorbase device driver is in online mode.
Note
To send response messages from Scorbase to the Device Driver:
This procedure is applicable only when the Scorbase device driver is in online mode.
Note
Pick-and-Place Parameters
The CIM Manager sends a set of parameters to a robotic device driver whenever it issues a
pick-and-place command. The device driver in turn activates the PCPLC program in the
robotic controller which receives these parameters and assigns them to the following global
variables:
;Global definitions
#IFNDEF _CIMSYS_DMC
#DEFINE _CIMSYS_DMC
#DEFINE _CIMSYSM_DMC
;Part macro
#MACRO PID ; part id 1=1..10 2=11..20 etc.
SET PID = PART - 1
SET PID = PID / 10
SET PID = PID +1
#ENDM
#MACRO MOVEB
MOVE .1 .2
#ENDM
#ELSE
#MACRO MOVEDB
#ENDM
#MACRO MOVEB
#ENDM
#ENDIF
;Synchronize macros
#MACRO STARTSYNC
SET $SYNC = 0
#ENDM
;Gripper macros
#MACRO OPEN ;Open the gripper.
GOSUB OGRIP
#ENDM
;Speed macros
#IF .__GROUP_B
;Check if group B is define.
#MACRO FASTB ;Set group B speed to fast.
SPEEDB SPFB
#ENDM
#ENDIF
The file WS1.DNL contains sample ACL source code. This is the type of file you would edit
when you want to change the way a robot moves.
If you want to modify one of the ACL System program files, enter these changes in the unique
PROLOGn.DNL file only.
Note
Variable Description
IN[16] Input status
ENC[6] Encoder
TIME Time
LTA Last time for group A
LTB Last time for group B
MFLAG Motion Bitmap
ERROR Error
OUT[16] Output status
ANOUT[6] Direct analog current to axis
For more information refer to the ACL Reference Guide.
ACL Controller User Variables (OpenCIM System Variables)
Variable Description
ERRPR Error program
ERRLI Error line
$SYNC Synchronization
$PDD Pend/ post printing to ACL programs
$PDF Pend/ post printing to ACL programs
SPFA Speed fast group A
SPMA Speed medium group A
SPSA Speed slow group A
SPFB Speed fast group B
SPMB Speed medium group B
SPSB Speed slow group B
$ID ID message number from the ACL device driver
PART Part number
PID Part ID group
$DEV1 Get device number
$DEV2 Put device number
INDXG Get device index
INDXP Put device index
$NOTE Note number
P1 Last position in the device group A
P2 Position before P1
P3 Position before P2
P4 Position before P3
P5 Position before P4
P6 Position before P5
Variable Description
$I
$IDL $ID Local
OpenCIM User-Defined Local Variables (ACL Controller
Variables)
If you want to modify one of the ACL System program files, enter these changes in the
unique PROLOGn.DNL file only (e.g. If you want to change the SPFA, go to the
EPILOGn.dnl file and type SETSPFA=80).
PROLOG (PROLOGn.DNL)
In the PROLOGn.DNL file you can modify system programs, such as Global System
variables (e.g. SPSA - speed slow group A), predefined positions or any other settings that
need to be predefined for a particular station.
The following examples show how the PROLOGn.DNL file can be modified:
Define Positions
The principle here is to have fewer positions for better performance and faster
backup/restore.
Definition of a CIM position vector: P= lower point, P+10= highest point.
; CIM:
; 1..9 P1 TEMPLATE
; 10..19 P2 TEMPLATE
; 21..29 P1 GET PART FROM BFFR1
; 31..39 P2 GET PART FROM BFFR1
; 41..49 P1 GET PART FROM
; 51..59 P2 GET PART FROM
; 61..69 P1
; 71..79 P2
; 81..89 P3
; 90..91
; 92..93
; 101..109 P1
; 111..119 P2
; 121..129 P1 PUT PART AT BFFR1
; 131..139 P2 PUT PART AT BFFR1
; 141..149 P1 PUT PART AT ASMBUF
; 151..159 P2 PUT PART AT ASMBUF
; 161..169 P2 OPENSPACE
; 171..179 P1 OPENSPACE FOR TEMPLATE
; 181..189 FREE
; 191..199 FREE
GET/PUT Programs
The GET/PUT.DNL files contain the pick-and-place programs.
The following figure shows an example of GET and PUT programs after customization.
.PROGRAM_GET .ASRS
.FAST
MOVED CIM[11]
.SLOW
.OPEN
MOVED CIM[1]
.CLOSE
MOVED CIM[11]
.START
.END_GET
.PROGRAM_PUT .ASRS
.SYNC
.FAST
MOVED CIM[11]
.SLOW
MOVED CIM[1]
.OPEN
MOVED CIM[11]
.FINISH
.END
.END_PUT
Figure 11-5: Synchronization Example for GET & PUT (Object Code)
QC Programs
The ACL can only hold integers. If you want to test integer quality control, you can send
your QC result to the ACL device driver (Barcode) once. If you want to test a decimal
number you need to send it string by string.
Integer Quality Control
ACL Source ATS / ACL Controller
Format*.QCL Format *.CBU Format
.PROGRAM QC PROGRAM QC 1. Receives the ID message
.GETIDL ***************
LABEL 11
number from the ACL device
READ ?%ID? driver.
$IDL
IF
$IDL = 0
GOTO 11
ENDIF
SET $I = 1
. . 2. Process to read the QC test.
. .
. .
4.
I. The CIM Manager sends two
values (a package), a higher limit
and a lower limit. Each package
has its own sequence # so that it
can be identified by the ACL
device driver. These are the
values that you defined in the
Part Definition form and in the
field parameters.
II. The ACL device driver sends the
sequence # for the package via
the RS232 link to the ACL
controller.
Process Programs
The Process programs include all of the utility programs necessary to operate the ACL
Input/Output (e.g. if you want to open the door of a CNC).
EPILOG (EPILOGn.DNL)
The EPILOGn.DNL file can be used to modify initialization system programs (INITC,
RESET) in the following ways:
ACL Source Format ATS /ACL Controller
EPILOGn.DNL *.CBU Format
PROGRAM RESET
PROGRAM RESET /Y *********************
GOSUB $REST
The program DOWNLOAD.EXE sends ACL source code files to the controller. While it is
sending programs to the ACL controller, this downloader checks syntax and substitutes the
program code associated with #DEFINE, #MACRO, and #INCLUDE. These three language
directives function similarly to their counterparts in C or Assembly language. For more
details, see the ACLoff-line program Users Manual and the ACL Reference Guide.
You must run the DOWNLOAD utility program on the Station Manager PC that is connected
to the controller in order to download programs (because the downloader requires an RS232
Note connection to the controller). However, the ACL source code files can reside on any PC
accessible via the network. Before trying to download code with the DOWNLOAD utility, be
sure to close the ACL device driver for this controller. Otherwise, a conflict will occur when
the ACL program tries to open the same serial port as the device driver.
Robot Programs
The Robot Programs consist of all the relevant programs necessary to run the robot. These
programs are divided into two categories: generic and unique, generic referring to the fact
that the program can be used by all the robots and unique referring to programs that are
specific for the robot at that station.
The Robot Programs are located in two places:
Generic Windows XP: [default system drive (for example C:)]\Documents and
Settings\All Users\Documents\Intelitek\OpenCIM\Projects\LIB\ACL
Windows Vista/7: [default system drive (for example
C:)]\Users\Public Documents\Intelitek\OpenCIM\Projects
Unique \Project#\WS#\ROBOT#
The following tables describe the file name conventions used for the ACL system programs
and sample applications supplied with OpenCIM. You should use these naming conventions
in your own programming to simplify technical support. You can use the ACL off-line
utility, the Robot Programs window or the text editor of your choice to edit these files.
We recommend that you use a Robot Programs window when editing these files. Save the
files in ASCII format.
It is recommended that you add a Robot Programs program group on a Station Manager
PC. This group should contain the following icons, as shown in the figure below.
Tip
ATS: Terminal emulation program which allows you to interact with the ACL
controller connected to a Station Manager PC.
Download: Sends ACL programs from a Station Manager PC to an ACL Controller.
Download Report:
Notepad WS1: Allows easy editing of a stations configuration file.
Additional Notepads: for editing other .DNL files.
4. Select the Download Report icon . Verify that the file ends with
>>>>>END DOWNLOAD FILE! Device file name
Note
If any Robot program files need to be edited, edit them before downloading.
Procedure
Downloading All of
the Robot Programs at
One Time In the Robot Programs window, select the Download Station icon ;
the files for the entire station are downloaded to the controller. When the files
are downloaded together, they are sent in the following order:
1. CIMSYS.SYS
2. PROLOGn.DNL
3. DEVICES.DNL, DEVICES.QCL and DEVICES*.PCL
4. EPILOGn.DNL
You should not edit ACL object code by using the ATS utility or by backing up a program
from a controller and modifying it. Either of these methods would result in an ACL file that
is very difficult to maintain.
Editing ACL object code (i.e. an *.CBU file) from the controller results in a program which
is out of sync with the original DNL file. This code is harder to read since all #DEFINE,
#MACRO, and #INCLUDE statements have been expanded in the controller and all remarks
have been deleted.
Note that the ATS utility can still be used for the following functions in the OpenCIM
environment:
Configure the controller
Back up and restore robot positions and downloaded ACL programs
Teach robot positions
Test a robot
Debug ACL programs by running them manually
To write a set of GET and PUT programs for a new device that has been defined in
SETUP.CIM, follow the steps outlined below:
Summary Details
1. Add the device to the 1. Use a text editor to insert a symbolic constant into the
file DEVICE.DMC file DEVICE.DMC. For example:
(connects the name of #DEFINE ASRS 002
the device and the # In this example, 002 is the device ID (3 digits required)
of the device). and ASRS is the symbolic name you will use throughout
your ACL programs to refer to this device.
It is much easier to maintain ACL programs that use
symbolic constants (e.g. .ASRS) instead of literal device
IDs (002). If a device ID ever changes, it is only necessary
to make the change in one place, i.e. in the file
DEVICE.DMC.
You should observe the following conventions when
assigning device IDs in order to simplify technical support:
001 Pallet at this conveyor station
002 ASRS (or other central storage)
2. Copy the files from 1. If you have a workstation with an ACL robot then add
..\LIB\ACL to the directory ROBOTn.
..WSn\ROBOTn
2. Copy the files from ..\LIB\ACL as follows:
Crash
When the ACL controller detects that a robot has collided with something, it responds as
follows:
The controller goes into COFF mode (Controller Off) and
immediately stops all motors on this robot.
The controller immediately terminates all programs which are trying
to move this robot. If any subsequent program attempts to move this
robot, it will terminate with a run-time error.
The ACL device driver automatically executes the DIAG program.
(This program should is loaded at initialization time as part of
CIMSYS.SYS.)
The DIAG program sends a status message to the CIM Manager to
reports the collision. See Sample ACL Programs, for a listing of
the DIAG program.
The CIM Manager displays the Device Error screen to alert the operator.
Emergency
Refer to your system user manual for details.
Request Action
Return
Purpose
Normally a G-code file is assigned to a CNC process in the Machine Definition module. In
this case, the CIM Manager takes care of automatically downloading this file prior to
invoking the process and the DownLoadD( ) command is not needed. You should only
use the DownLoadD( ) command if you cannot set up a downloading batch file.
Function
The DownLoadD( ) command sends the G-code file FileName to the CNC machine
using the RS232 port specified in the device driver's command line. For machines capable of
retaining more than one program, you can specify the memory region where the current
program is to reside.
If the parameters Loader and TaskLoadedMark have been defined, the device driver
uses the batch file specified by Loader to perform the download (recommended).
Otherwise, the device driver's internal downloader is used.
Examples
DownLoadD(
Windows XP: [default system drive (for example
C:)]\Documents and Settings\All
Users\Documents\Intelitek\OpenCIM\ WSn\filename,
Windows Vista/7: [default system drive (for example
C:)]\Users\Public Documents\Intelitek\OpenCIM\WSn\filename,
memory area (optional))
This statement sends the file MILLPART.G to memory region 1 in the CNC machine.
DownLoadD(P1, P2)
When testing a machine, the following statement receives the G-code file and memory
region that were defined in the Parameter field of the device driver's Control Panel.
Purpose
Viewing status messages during the operation of a CNC machine can be helpful in
troubleshooting problems and verifying the proper functioning of the machine. Messages can
also instruct the operator of the machine when a manual procedure must be performed.
These messages can be particularly helpful when dealing with machines which have either
no display of their own or only a very limited status panel.
Function
The Draw( ) command prints the string line_of_text in the CNC Status window. This
window appears on the PC running the CNC Device Driver. The Draw( ) command prints
each string on a new line.
The message string can be from 0 - 80 characters long. This argument can consist of either a
string literal enclosed in quotation marks (e.g. Drilling in progress) or a
parameter variable (V1 - V16, P1 - P8).
Examples
Draw(P3)
Draw(V5)
Draw(Door Open)
Draw2( )
Draw2( ) Prints 2 lines to the screen
Name: Draw2(text_line_1, text_line_2)
Inputs: text_line_1 First string to display in the 0 - 80 characters
CNC Status window
text_line_2 Second string to display in the 0 - 80 characters
CNC Status window
Purpose
When there is more than one line of text to display, it is convenient to use the Draw2( )
command to print two lines of text with one command call. Using the Draw2( ) command is
also faster than making two successive calls to the Draw( ) command. This can be an
advantage when running in a busy, real-time environment.
Function
The Draw2( ) command prints the strings text_line_1 and text_line_2 in the CNC
Status window. This window appears on the PC running the CNC Device Driver. The
Draw2( ) command prints each string on a new line.
Each message string can be from 0 - 80 characters long. These arguments can consist of
either a string literal enclosed in quotation marks (e.g. Machine overheated!) or a
parameter variable (V1 - V16, P1 - P8).
Purpose
Some operations of a CNC machine are time-based as opposed to operations that signal their
completion via a status line. The PulsBit( ) command provides a convenient way of
executing an operation for a specified time period.
For example, after a part has been machined, it may be necessary to rinse it with water for 30
seconds before removing it from the CNC machine. The PulsBit( ) command can be
used to turn on the bit which controls the rinse cycle for the required period of time.
Function
The PulsBit( ) command gives you the means to control CNC operations for a specified
period of time. It turns on the designated bits of an output port for a specified duration.
The portn argument specifies the output port which contains the bit(s) that operate the
control line(s) you are interested in.
mask1 can be set to either:
The current value of the output port, BVn
An absolute bit mask value (see description of mask2 below)
You specify which ctrl lines should be pulsed on and off by constructing a bit mask, mask2.
The mask2 argument is an 8-character string composed of 1s and 0s in ASCII text. This
argument can consist of either a string literal enclosed in quotation marks
(e.g. 10000000) or a parameter variable (V1 - V16, P1 - P8).
Examples
PulsBit(PORT0, BV0, 10000000, 30000)
This example turns on control line # 7 that is connected to the PCs output port 0 for 30
seconds. The remaining bits in the port retain their current values during and after execution
of PulsBit( ) since their values in the bit mask are 0.
PulsBit(PORT1, BV1, V5, 100000)
The bits in output port 1 are ORed with the bit mask in variable V5. The result is written to
output port 1 and the corresponding control lines are set on and off for 100 seconds.
Afterwards, the original value of output port 1 is restored.
PulsBit(PORT1, BV1, P4, P7)
The bits in output port 1 are ORed with the bit mask in parameter variable P4. The result is
written back to output port 1 and the corresponding control lines are set on and off for a
period of P7 milliseconds. Afterwards, the original value of output port 1 is restored.
Purpose
In a CIM environment, a CNC machine must report its status to other CIM entities such as:
The CIM Manager which handles production scheduling and
tracking
Devices which are dependent on this machine (e.g. the robot that
tends the machine)
The Graphic Production Module which displays the machines status
The SendMsg( ) command informs these entities when the CNC machine has completed
processing a part, when there is a problem that causes an alarm condition, etc. This
command uses a set of predefined messages to perform this function. Each message has an
associated ID and destination device address.
You can generate real-time status messages by inserting the SendMsg( ) command
throughout a program.
You can add your own custom messages to the message file. For example, this capability is
useful if you are programming a robot to tend this CNC machine. You could define a
message to notify the robot when the machine is ready to receive a part and another message
to inform the robot that the part is ready to be picked up. You would use the SendMsg( )
command to send these messages.
Function
The SendMsg( ) command sends predefined real-time status messages to any CIM entity.
The argument msg_to_send specifies the ID number of a message stored in the file
VC2_WM.DBF. This ID number is sufficient to deliver the message because there is a
destination address associated with each message in this file.
Examples
SendMsg(2582)
This statement finds the message with the ID number of 2582 in the file VC2_WM.DBF. It
then sends this message to the destination device listed in this message record.
SendMsg(P4)
SendMsg(V12)
Purpose
The control lines of CNC machine are commonly mapped to bits in a PCs output port(s).
When a bit is toggled on and off, it controls the corresponding function on the CNC
machine. For example, suppose bit 3 is mapped to the door on the CNC machine. Setting bit
3 to one would close the door and setting it to zero would open the door.
By setting the appropriate bit(s) to the desired value, the SetBit( ) command allows you
to control a CNC machine.
Function
The SetBit( ) command allows you to modify a set of bits in an output port in order to
control the operation of a CNC machine.
The portn argument specifies the output port which contains the bit(s) that operate the
control line(s) you are interested in setting. Each I/O port on a PC contains 8 bits.
mask1 can be set to either:
The current value of the output port, BVn
An absolute bit mask value (see description of mask2 below)
Typically, mask1 would be set to the system variable BVn, the current value of the output
port. Using BVn allows you to set only the bits you are interested in while preserving the
values of the rest.
Alternatively, you could set the port to an absolute value by specifying a bit mask for mask1
instead of BVn. For example, to reset the port to a known value, you could specify the same
bit mask value for mask1 and mask2 and use an OR operation between them. This would
assign the value of the bit masks to the output port regardless of the ports previous value.
| - OR
Bit in mask1 Corresponding Bit Result after
in mask2 SetBit( )
0 0 0
0 1 1
1 0 1
1 1 1
^ - XOR
Bit in mask1 Corresponding Bit Result after
in mask2 SetBit( )
0 0 0
0 1 1
1 0 1
1 1 0
~ - NOT
Bit in mask1 Corresponding Bit Result after
in mask2 SetBit( )
0 Not used 1
1 Not used 0
Purpose
After performing an operation on a CNC machine, it is sometimes desirable to pause for a
while before continuing with the next operation. For example, it may be necessary to wait 2
minutes after a certain procedure to allow a part to cool down before a robot extracts it from
the CNC machine. In this case the command Wait(120000) can provide the required
delay before the CNC script program signals the CIM Manager that the part is ready.
Function
When the CNC Script Interpreter encounters the Wait( ) command, it pauses for the
indicated amount of time before executing the next program statement. The argument
time_to_wait specifies the number of milliseconds the interpreter waits before resuming
execution. This argument can be either an integer or a parameter variable (V1 - V16,
P1 - P16). The minimum time_to_wait is the value of the parameter
CNCDriverTimer found in CNC.INI.
Examples
Wait(2000)
This statement causes the CNC Script Interpreter to pause for 2 seconds.
Wait(V16)
Wait(P8)
The length of the pause resulting from each of these two statements depends on the values of
variables V16 and P8.
Purpose
After performing an operation on a CNC machine, it is frequently necessary to wait for a
status line to signal that the operation was successfully performed. Status lines from a CNC
machine are connected to an I/O board which maps each line to a bit in a PC input port.
By examining the value of these input port bits, it is possible to determine information about
a machine such as:
Status Line Example
An operation is completed. Bit 0
Drilling in progress = 0
Hole drilled = 1
An alarm condition has occurred. Bit 1
Normal temperature = 0
Machine overheated = 1
The position of a component on a CNC machine. Bit 2
Door open = 0
Door closed = 1
The WaitBit( ) command allows you to read a set of status lines in order to monitor the
operation of a CNC machine.
Examples
WaitBit(PORT1, 1000001, 2000)
This statement causes the CNC Script Interpreter to check port 1 for up to 2 seconds. If
status lines 0 and 7 in this port are high, the condition is true and execution resumes with the
next CLINT statement. If this match does not occur within 2 seconds, an error is generated.
WaitBit(PORT0, V3, P2)
The variables PORT0 and V3 contain the address of the input port and the bit mask
respectively. Variable V3 is assigned its value at initialization time from the file
VC2_CNC.INI. The time out interval, P2, is specified at run time when this program is
invoked.
Purpose
The WaitBitZ( ) command allows you to read a set of status lines in order to monitor the
operation of a CNC machine. See the WaitBit( ) command above for details.
Function
The WaitBitZ( ) command monitors an input port, portn. It compares the value of
this port with the bit mask argument, mask. This command waits for the specified interval
for one of the following conditions to be true:
An exact match occurs between all 8 bits of the input port and the bit
mask.
A bit equal to 1 in mask matches up with the corresponding bit equal to 0 in the output port.
For example, bits 5 and 7 below meet this condition:
10100000 mask
01011111 BVn
When one of these conditions is true, the Command Interpreter prints in the Status window:
--- Condition is true ---
It then proceeds to execute the next command.
The WaitBitZ( ) command monitors the port for the period of time specified in the
argument time_to_wait (in milliseconds). This argument can be either an integer or a
parameter variable (V1 - V16, P1 - P16). The minimum time_to_wait is the
value of the parameter CNCDriverTimer found in CNCVDn.INI.
If neither of the above conditions occurs during this interval, the command times out. The
CNC Script Interpreter aborts program execution and generates the error message
WM_CIMDDE_CNCERROR. The CNC Device Driver relays this error message back to the
CIM Manager.
Purpose
The command is generally used to get a status message in order to continue execution of the
process after uploading a G-code program to a CNC machine.
Function
The WaitFile( ) command waits until the specified file is created during a specified
interval. If the specified file has not been created during the specified interval, the command
times out. The CNC Script Interpreter aborts program execution and generates the error
message WM_CIMDDE_CNCERROR. The CNC Device Driver relays this error message
back to the CIM Manager.
Examples
WaitFile(P1, V1)
WaitFile(V1, P1)
WaitFile(V1, V2)
WaitFile(P1, P2)
WaitFile(
Windows XP: [default system drive (for example
C:)]\Documents and Settings\All
Users\Documents\Intelitek\OpenCIM\ WSn\filename
Windows Vista/7: [default system drive (for example
C:)]\Users\Public
Documents\Intelitek\OpenCIM\WSn\filename), wait time)
Purpose
After performing an operation on a CNC machine, it is usually necessary to wait for a status
message in order to confirm that the operation was performed successfully.
Function
The WaitString( ) command waits for a string during a specified interval. If the CNC
device driver doesnt receive the string during the specified interval, the command times out.
The CNC Script Interpreter aborts program execution and generates the error message
WM_CIMDDE_CNCERROR. The CNC Device Driver relays this error message back to the
CIM Manager.
Examples
WaitString(V1, V2)
WaitString(V1, P1)
WaitString(P1, V1)
WaitString(Test is done, 10000)
Purpose
When a program is to be run in the ACL controller, a string (recognizable by the ACL
controller) is sent to the ACL controller and the address tells the controller where to send the
string.
Function
The SendString( ) command sends predefined commands to any CIM entity.
Examples
SendString(P1, P2)
SendString(V1, V2)
SendString(V1, P1)
SendString(WS0 DDE ACL 25, RUN SSCNC)
MSDOS( )
MSDOS( ) Performs any MS-DOS command
Name: MSDOS(String)
Inputs: String Any valid MS-DOS Any valid MS-DOS
command. command.
Purpose
The command provides an interface from OpenCIM to the MS-DOS operating system.
Function
The MSDOS( ) command launches the MS-DOS command interpreter with the string
specified at the functions input.
Examples
MSDOS(V1)
MSDOS(P1)
MSDOS(LOADER.BAT FILE.DAT)
Purpose
The command provides an interface from OpenCIM to the MS-WINDOWS operating
system.
Function
The MSWINDOWS( ) command launches the MS-WINDOWS executable file according to
the string specified at the functions input.
Examples
MSWINDOWS(V1)
MSWINDOWS(P1)
MSWINDOWS([default system drive (for example
C:)]\WINDOWS\NOTEPAD.EXE
Windows XP: [default system drive (for example
C:)]\Documents and Settings\All
Users\Documents\Intelitek\OpenCIM\ WSn\filename
Windows Vista/7: [default system drive (for example
C:)]\Users\Public
Documents\Intelitek\OpenCIM\WSn\filename)
ABORT( )
ABORT( ) Unconditionally aborts the current CNC Device Driver program
Name: ABORT( )
Purpose
Using this command is the only way to abort a CNC Device Driver program without the
CIM Manager.
Function
The ABORT( ) command unconditionally aborts the current CNC Device Driver program.
Examples
ABORT( )
Command Sequence:
. When the production plan calls for machining a part, the CIM Manager
sends a single command telling the tending robot to insert the part in the CNC
machine.
. The PUT program in the robot's ACL controller sends a series of
commands to open and close the door and the vise on the CNC machine so the
robot can insert the part.
. When the robot signals that the part is in place, the CIM Manager sends an
activate command to the CNC machine.
Figure 11-8: Sequence of Commands when a Robot Tends a CNC Machine
The STRTM subroutine is executed in parallel to the Pick and Place operation of the robot
The STRTM subroutine does not contain axis control Scorbase commands.
Notes
The Run STRTM string is generally defined in the CNC device driver script file.
Pay attention to the Enable/Disable Input Interrupt instructions to ensure system safety.
Note
CNC Device CNC script programs (executed by the CNC device driver) which are
Driver activated by a robot request. For example:
OPEN DOOR, CLOSE DOOR, OPEN VISE, CLOSE VISE
ACL A group of short ACL programs which set a semaphore variable that
Controller announces that the CNC machine has completed the requested operation
(e.g. DROPN - door open, DRCLS - door closed, VCOPN - vise open,
VCCLS - vise closed).
The WAIT statement is more efficient than using a polling loop to continually check the
value of the variable DOOR. Unlike a loop, this statement suspends execution of the
Tip
program until the condition is satisfied. Suspending execution allows other active ACL
programs to run faster.
PROGRAM DROPN
SET DOOR = OPEN
END
PROGRAM DRCLS
SET DOOR = CLOSE
END
PROGRAM VCOPN
SET VISE = OPEN
END
PROGRAM VCCLS
SET VISE = CLOSE
END
.PROGRAM_PUT .CNC1
.SYNC
.FAST
MOVELD CIM[260]
IF PART = 2
ORIF PART =4
GOSUB GIJIN
ENDIF
MOVED CIM[260]
MOVED CIMB[260]
SET DOOR = 0;
.CNCREQ .CNC1 OPEN DOOR
WAIT DOOR = OPEN
.MEDIOM
MOVED CIM[261]
SPLINE CIM 262 263
SET VISE = 0
.FINISH
.OPEN
.END
.END_PUT
Do not perform Backup procedures while the OpenCIM is running because currently
running programs may be aborted and data files may be in an unstable state.
Note
Always keep robot positions, ACL programs and parameters on disk.
Back up and restore the entire system regularly to ensure good backup at all times.
A-Plan Commands
The following discussion of the A-Plan assumes that:
The default storage device is a single ASRS used to house empty
templates, raw materials, and finished parts.
The default assembly device is a jig machine which is used to hold
parts that are in the process of being put together by a robot.
The list below shows each command that can appear in the A-Plan table. Related commands
are grouped together. These groups are labeled in the Purpose column.
Purpose A-Plan Description
Command
Loop for Producing MAKE Defines the beginning of a loop used to produce the
Multiple Parts of the number of products ordered.
Same Type
NEXT Marks the point at which production of the next
ordered part begins. Note that production of the next
part may begin before the current part has finished.
Template Commands DELIVER Tells the PLC to stop a specific template at a station.
FREE Releases an empty template so it can be returned to
the ASRS.
You can invoke a device driver in any one of the following ways:
Use the OpenCIM Loader to automatically start up a set of device
drivers listed in the [Loading] section of an INI file.
In the Windows Program Manager, click on an icon which is defined
to run the device driver.
In the Windows Program Manager, select File, Run and enter the
device driver command line.
Projects Directory
CIM projects are installed in the public user directory:
Windows XP: [default system drive (for example C:)]\Documents
and Settings\All Users\Documents\Intelitek\OpenCIM\
Windows Vista/7: [default system drive (for example
C:)]\Users\Public\Documents\Intelitek\OpenCIM\
This directory contains the projects folders.
WS2.DNL Listing of all the download robot programs for this station.
TRASH1.DNL
BFFR1.DNL
RDR1.DNL
RACK1.DNL
CNV1.DNL
EPILOG1.DNL
PROLOG1.DNL
FDR1.DNL
ASMBUF.DNL
ASRS.DNL
LIB/ SCR Subdirectory containing all the CNC script and BATCH file
examples.
SCRLAB.DBF
SCRILAB.DBF
SCRTIL.DBF
SCRSITIL.DBF
SCRPRJ.DBF
VC2_WM.EXP
CNC_L.LAB
EXAMPLE.DBF
CNC_L.BAT
CNC_SCR.DBF
CNCSCRSI.DBF
LIB/ ViewFlex Subdirectory containing all the ViewFlex Scripts
CHECK_V.bas
FIND_4_PINS.bas
FIND_4_SCREWS.bas
Lower_Left_Pin.mod
Lower_Left_Screw.mod
Lower_Right_Pin.mod
Lower_Right_Screw.mod
Upper_Left.mod
Upper_Left_Pin.mod
Upper_Left_Screw.mod
Upper_Right_Pin.mod
LIB/ Vuniq40 Subdirectory containing required files to work with with Vuniq.
MAP.INI
The setup file MAP.INI performs the following functions:
Contains the TCP/IP configuration of the manager and all device
drivers in an OpenCIM cell. This information is required by each
OpenCIM in order to enable communication with other OpenCIM
entities.
Allows two or more devices to use the same device driver to send
and receive messages
A typical MAP.INI has the following format:
[Redirect]
53=51
User Manual 12-13 OpenCIM
Inside OpenCIM
23=21
24=21
[COMMMANAGER]
RemoteIP=200.1.1.1
RemotePort=700
[COMMACL11]
RemoteIP=200.1.1.1
RemotePort=711
[COMMLSM13]
RemoteIP=200.1.1.1
RemotePort=713
[COMMACL21]
RemoteIP=200.1.1.1
RemotePort=721
[COMMACL24]
RemoteIP=200.1.1.1
RemotePort=724
When a device driver starts, it must access MAP.INI in order to be able to communicate with
other device drivers and the CIM Manager. On each Station Manager PC the file path to
MAP.INI is contained in the parameter variable CimMapPath in the [Networking]
section of the INI file for this station.
To guarantee proper operation of OpenCIM, be sure that the file MAP.INI is accessible to all
device drivers. To be sure that the MAP.INI file is accessible, do the following:
Note
Open any device driver
Check if the MAP.INI file is updated by editing the TCP/IP configurations of the DD
opened
You can use any ASCII text editor (e.g. Windows Notepad) to modify MAP.INI. The two
types of entries in this file are described below.
Since only one device can be assigned to a device driver on a command line, an ID entry in
MAP.INI is used to assign other devices to this device driver. For example, a bar code reader
(device 13) and a robot (device 11) may be connected to the same ACL controller and thus
share the same ACL device driver for passing OpenCIM messages. The following command
line assigns the robot to the ACL device driver:
ACLDriver.EXE ACLVD1.INI 11,13 /COM:2
The following MAP.INI entry allows the bar code reader to share the use of this device
driver:
[REDIRECT]
13=11
13 A device that is sharing the use of a device driver.
11 The primary device that is assigned to a device driver on the command line
that invokes the device driver.
For an explanation of this file and how to edit it, refer to Writing ACL Source Code in
Chapter 11, OpenCIM Programming.
[Networking]
CimMapPath=..\SETUP\MAP.INI
Timer=300
AttemptsCount=3
PassCount=3
OffDelay=3
EchoFilter=1124
[Simulation]
PCPLC=20,7,15
[ASRS1]
NumberOfRows=6
NumberOfCols=6
NumberOfGrids=2
FirstGridWithMinIndex=Bottom
LocationMinIndexGrid=LeftBottom
DirectionIncIndexGrid=Right
[WndStatus]
PROGDEF=0
ORDERDER=0
STRGDEF=0
DEVICEDEF=0
LOGDEF=0
PALLETEDEF=0
LEAFDEF=0
EVENTDEF=0
MANAGERDEF=0
HYSTORYDEF=0
[CIMMODES]
TRACKINGMODE=0
User Manual 12-19 OpenCIM
Inside OpenCIM
UPDATEDURATION=0
SENDTOGRAPH=0
SIMULATION=1
CIMSPEED=1
[DDFileName]
CNV1=..\CIMLAB4\WS1\PLCVD1.INI
SQRAS1=..\CIMLAB4\WS1\ACLVD1.INI
RDR1=..\CIMLAB4\WS1\LSMVD1.INI
ROBOT5=..\CIMLAB4\WS2\ACLVD5.INI
PCTURN1=..\CIMLAB4\WS2\CNCVD1.INI
PCMILL1=..\CIMLAB4\WS2\ CNCVD2.INI
ROBOT3=..\CIMLAB4\WS3\ACLVD3.INI
ROBOT4=..\CIMLAB4\WS4\ACLVD4.INI
VSN1=..\CIMLAB4\WS4\RVPVD1.INI
CMM1=..\CIMLAB4\WS4\LSMVD2.INI
You can use some combination of the parameter file strategies listed below when deciding
how to organize INI files for your system:
Put all default parameter settings in OPENCIM.INI. Then write a separate INI file for each
device driver that contains only those parameters that deviate from the default.
Have a separate INI file for each device driver containing all the parameters for that device.
Use OPENCIM.INI only for global parameters.
Have a separate INI file for each Station Manager PC (e.g. WS1.INI) which contains the
parameters for all devices at that station. These files would also contain the command lines
used by the Loader to start each device driver at a station. Use OPENCIM.INI only for
global parameters.
To set up or edit an INI file, use a text editor (e.g. Windows Notepad) that can save files in
ASCII format. The file is divided into sections with the title of each section enclosed in
brackets, for example [Networking]. A program searches for the sections that apply to it and
reads the associated parameter settings. Keep the following considerations in mind when
editing an INI file:
Only lines that begin with valid parameter names are read (i.e. only parameters that belong in
that section), all other lines are ignored. If you misspell a parameter name, it will be ignored.
A leading space at the beginning of a line will cause that line to be ignored.
Do not insert the same parameter more than once in a section (there is no guarantee as to
which value will be used).
You can insert blank lines in an INI file to group related parameters and to set off sections.
CimSetupPath=..\CIMCELL\SETUP\SETUP.CIM
[Networking]
CimMapPath=..\CIMCELL\SETUP\MAP.INI
[CNCDriverDefinitions]
BaudRate = 9600 RS232 parameters used by the CNC device
Parity = None
DataBits = 8
driver when it downloads G-code to a CNC
StopBits = 1 machine. You must set these parameters to
XonXoff = No match the RS232 settings on the CNC
machine.
; --- CNC Variables ---
V1 = ACL71 Parameter variables used by CNC script
V2 =
V3 =
programs. These variables are used to write
V4 = portable CNC script programs. For further
V5 = information, see ULS Device Driver in
V6 = Chapter 8.
V16 =
BV0 = 0 These 8-bit values, which range from 0-255,
BV1 = 0
are assumed to be the initial state of the control
lines of a CNC machine when the system is
turned on.
PORT0 = 0x500 I/O port addresses on a Station Manager PC
PORT1 = 0X501
that are mapped to the status and control lines
of a CNC machine using a special interface
card. These values should match the jumper
settings on the I/O card.
[DEBUG]
Protocol=YES
The term DDE stands for MS-Windows Dynamic Data Exchange. OpenCIM device drivers
do not currently use DDE but this term remains in the above field names for backward
Note
compatibility.
The following table shows the standard OpenCIM messages contained in VC2_WM.DBF:
External CIM Message Description
Message
2225 Robot Start from ACL
2226 Robot Finish from ACL
2230 Robot End from ACL
2335 Pallet Stop from PLC
2336 Pallet Pass from PLC
2337 Error from PLC
2338 Arrive Free Pallet from PLC
2229 Error from ACL
2339 Complex Pass Message from PLC to OLMT
2580 CNC End from CNC
2576 CNC Error from CNC
2581 CNC Start from CNC
2 ALGNAME Character 30
3 ALGWEIGHT Character 3
4 ACTIVE Character 3
5 FIN2FIN Character
6 Note Character 80
How to Proceed
In order to continue operation, two tasks must be accomplished:
The part should be placed where the next process assumes the part is to be found.
The proper messages must be sent to the CIM Manager so that it can activate the next
process.
In most cases, the safest and easiest way to accomplish these tasks is to:
1. Remove the source of the problem.
2. Cause the device to repeat the operation. This is done by sending the device the
appropriate command from the device driver. Then the CIM Manager ignores the
reported error because the problem for the device has already been corrected.
Ignore Process successfully completed; ignore the error and resume production.
If the current process was successfully completed (with or without help
from the operator), clicking the Ignore button causes the CIM Manager to
ignore the cause of the error and proceed with normal processing of the
current part.
Version number and date of every Intelitek software used (the information appears on the
first screen of every software supplied, and through the ACL command VER regarding
EPROMs):
Detailed descriptions of the problem, including (but not only) all the steps which led up to
the problem arising, since the start-up of the system (attach more pages if necessary):
_______________________________________________________________________________
_______________________________________________________________________________
Error messages as they appear on the display (PC screen, TP LCD, PLC LEDs, etc.):
_______________________________________________________________________________
_______________________________________________________________________________
List all changes introduced to the system since the last time the system worked properly:
_______________________________________________________________________________
_______________________________________________________________________________
For robots: List of accessories and I/Os connected to controller and type of gripper attached
to arm: _________________________________________________________________________________
_______________________________________________________________________________
Attach a printout of all the control parameters.
1. In the Intelitek Software License dialog box, select Online. Enter your CD key in the
appropriate fields. Your CD key can be found on the back of the CD case. It was also e-
mailed to you or sent to your team's main contact (for FIRST teams).
2. Click Unlock.
The software will automatically connect to Intelitek's website. An unlock code will
automatically be installed on your PC and a message will appear saying that the software is
now licensed.
By E-mail
1. In the Intelitek Software License dialog box, select E-mail as your registration
preference. Enter your CD key in the field below. Your CD key should be found on the
back of your CD case, and was either E-mailed to you or sent to your team's main
contact (for FIRST teams).
2. If E-mail is available on the host PC, a new email containing the required details will
open.