Despite the care taken in the preparation of this document, NUM cannot guarantee the accuracy of the information it contains and cannot be held
responsible for any errors therein, nor for any damage which might result from the use or application of the document.
The physical, technical and functional characteristics of the hardware and software products and the services described in this document are subject
to modification and cannot under any circumstances be regarded as contractual.
The programming examples described in this manual are intended for guidance only. They must be specially adapted before they can be used in
programs with an industrial application, according to the automated system used and the safety levels required.
All rights reserved. No part of this manual may be copied or reproduced in any form or by any means whatsoever, including photographic or magnetic
processes. The transcription on an electronic machine of all or part of the contents is forbidden.
This software is the property of NUM. Each memorized copy of this software sold confers upon the purchaser a non-exclusive licence strictly limited
to the use of the said copy. No copy or other form of duplication of this product is authorized.
2en-938928/2
Page 3
Table of Contents
1General7
2System Architecture9
2.1PCNC 1060 Series II System Architecture9
2.2PCNC 1060 System Architecture10
3Card Layout in the Rack11
3.1Card Layout in the 1060 Series II Rack11
3.2Card Layout in the 1060 Rack12
4PCNC Configurations13
4.1PCNC 1060 Series II Configuration13
4.2PCNC 1060 Configuration14
5PC Module Characteristics15
5.1PC Module Version 1 Characteristics15
5.2PC Module Version 2 Characteristics16
6PC Module Connection Wiring Diagram18
6.1PC Module Version 1 Connection18
6.2PC Module Version 2 Connection19
7PCMCIA Module Characteristics20
8Cables21
8.1Video Cable21
8.2Diskette Drive Cable23
8.2.1PC Version 1 Module23
8.2.2PC Version 2 Module24
9Work on the PC Module25
9.1Replacing the Battery26
9.2Adding a DRAM Memory Module26
9.3Adding the PCMCIA Module27
10Using the PC28
10.1Applications Which Can Be Used by the PC28
10.2Using the PC28
10.2.1Config.sys28
10.2.2NUM Shutdown29
10.2.3Opening a User Application at Startup31
10.2.4NUM Task/User Task Toggle31
10.2.5Creating System Diskettes32
10.2.6Regenerating the Initial Configuration32
10.2.7Reinstalling the NUM Application32
10.2.8Backing up the NUM Application32
10.2.9Restoring a Disk: CHKDSK32
10.2.10 Modifying the NUM Application Task
Priorities33
08 - 940Document creation
02 - 961Conforming to NUM 1060 software - index J
Diskette contents
Added PC module, version 2
Added PCMCIA module
Added use of the PC
Added functional description of the PCNC server
09 - 972Conforming to NUM 1060 software - index L
en-938928/25
Page 6
6en-938928/2
Page 7
PC Module
1General
The PC module is designed for integration in the PCNC 1060 architecture.
If provides the following functions:
- conventional functions of a PC operating under OS/2,
- functions associated with the operation of the CNC through specific applications.
The present document covers only the specific features regarding the integration and operation of the PC module.
The integration of a system including a PC module involves concepts developed in the following manuals:
- NUM 1060 Installation and Commissioning Manual (938816),
- UC SII Central Processing Unit Manual (938922) when a Series II PCNC 1060 is involved,
- Automatic Control Function Programming Manual in Ladder Language (938846) or Assembler (938817),
- UNI-TE Protocol Utilization Manual (938914),
- Parameter Manual (938818).
The following are supplied with the PC module
The IBM documentation for the OS/2 operating system.
A NUM diskette.
REMARKThe files on the NUM diskette are listed in file Readme.TXT, which also
contains information supplementing that below.
The NUM diskette includes:
-directory DEFINE containing file SAMPLES.DEF listing all the functions that can be imported from LIB_UNIT.DLL
and DNC.DLL,
-directory DOC containing the documentation of the functions included in the DLLs, in a document in WORD format
(DNC.DOC) and the same document in Text format (DNC.TXT). This directory also contains a file briefly describing
the examples of use of the queries supplied with the diskette (SAMPLES),
-directory INCLUDE containing the .h files required for the various compilations:
* compilation under DOS of the programmes using the pipe: conf_dos.h, dnc.h, lib_dll.h, uniosdos.h and
specific.h,
* compilation under OS/2 of the task managing the pipe: conf_OS2 and uniosdos.h,
* compilation under OS/2 of the examples: conf_OS2.h, dnc.h and lib_dll.h,
-directory LIBRARY containing the two DLLs to be loaded into directory C:\OS2\DLL
-directory OS2PIPE containing the files required to allow a DOS application to send DNC queries via a pipe to a task
running under OS/2. This directory contains:
* subdirectory DOSSRC containing library lib_dnc.lib to be compiled with the other files of the customer
application. This library was compiled and tested with a Microsoft compiler,
* subdirectory OS2PIPE containing the source and executable files of the task running under OS/2 as
well as the MAKEFILE using the IBM CSET/2 compiler,
-directory SAMPLES containing examples of use of the DNC queries under OS/2. This directory contains source
programmes and executable programmes. Compilation file CSET/2.CMD is used to compile the sample files using
IBM CSET/2,
-directory WINDOWS containing a sample programme running under Windows and using the PIPE. The
executable, the INI programme and the three DLLs must be copied into the same directory,
en-938928/27
Page 8
CAUTION
!
Up to version C2, the DNC library included only one file, LIB_UNIT.DLL.
It now includes two files (DNC.DLL and LIB_UNIT.DLL)
which must be loaded into directory C:\OS2\DLL.
The old file LIB_UNIT.DLL is now replaced by the new ones.
Installing the Diskette
To decompress the software, create a directory on the hard disk and transfer file ZIP.EXE into this directory. Go into
this directory and type ZIP.EXE -d.
8en-938928/2
Page 9
2System Architecture
2.1PCNC 1060 Series II System Architecture
Memory
S
II
CNC function
C
P
U
PLC function
RS 232 serial links
Interrupt
Analogue inputs/outputs
PC Module
Serial bus
System bus
P
C
Serial bus /
optical fibre
adaptation
Inputs
Outputs
Axes
Dedicated
interfaces
PCMCIA
Graphic
function
Machine
panel
Machine
panel
extension (I/O)
Speed reference
Measurement
Origin switch
Type 2 network links
Operator panel
PC
function
RS 232 serial links
Parallel link
en-938928/29
Page 10
2.2PCNC 1060 System Architecture
processor
Machine
processor
Serial bus /
optical fibre
adaptation
Inputs
Serial bus
Outputs
CNC
Serial links
Interrupts
Analogue inputs/outputs
Serial links
Remote
inputs
Remote
outputs
Machine
panel
Machine
panel
extension (I/O)
System bus
P
C
Memory
Axes
Dedicated
interfaces
PCMCIA
Graphic
function
PC
function
Speed reference
Measurement
Origin switch
Type 2 network links
Operator panel
RS 232 serial links
10en-938928/2
Parallel link
Page 11
PC Module
3Card Layout in the Rack
The CNC cards are installed one after the other starting from the right.
The input/output cards are installed leftward from the first available slot after the CNC cards.
Install blanking covers in the empty slots (10, 20 and 30 mm).
!
The PC module occupies the two slots immediately to the left of the last CNC card installed,
or three slots if the PCMCIA card is connected to it.
3.1Card Layout in the 1060 Series II Rack
CAUTION
PCMCIA
Slots for CNC cards
452076
To left
of last
PC module
CNC
card
13
Power supply
UC SII Central Processing Unit
8
Slots for input/output cards
765
en-938928/211
Page 12
3.2Card Layout in the 1060 Rack
Slots for CNC cards
11
121314109876543210
To left of last
CNC card
PCMCIA
1211108765
Slots for input/output cards
PC module
9
Memory card
CNC processor
Machine processor
Power supply
12en-938928/2
Page 13
4PCNC Configurations
4.1PCNC 1060 Series II Configuration
PC Module
Operator panel
Support for
type 1 and 2
PCMCIA cards
Mouse
Input/
output
cards
PC
PCMCIA
PC module
Peripherals
Diskette
drive
Axis card
Tape read
punch unit
Power supply
UC SII Central processing unit
Printer
DNC computer
1 or 2 machine
panels
X
M01
CYCLE
START
CYCLE
STOP
Machine tool
Power cabinet
Automatic controls
Handwheel
Sensor or
rule
Motor
Analogue inputs/outputs
External interrupts
NUM and Customer
applications
Servo-drive
en-938928/213
Page 14
4.2PCNC 1060 Configuration
Operator panel
Support for
type 1 and 2
PCMCIA cards
Input/output cards
Mouse
PCMCIA
PC module
PC
Axis card
Axis card
Memory card
Peripherals
Diskette
drive
CNC processor
Machine processor
Tape read
punch unit
Power supply
Printer
DNC computer
1 to 4 machine
panels
X
M01
CYCLE
START
CYCLE
STOP
Machine tool
Power cabinet
Automatic controls
14en-938928/2
Sensor or
Handwheel
rule
Motor
Analogue
inputs/outputs
External interrupts
NUM and Customer
applications
Servo-drive
Page 15
5PC Module Characteristics
5.1PC Module Version 1 Characteristics
Power consumption11 W maximum
LocationLast two CNC board slots
External temperature40 °C maximum
PC Module
(See Chapter 3)
Def.
C
O
M
1
Serial lines
Two RS 232 serial lines (9-pin male connectors)
Maximum input voltage± 30 V
VOL typical- 9 V
VOH typical+ 9 V
Extreme loads2000 pF, 5kΩ (about 10 m of cable)
Data rate110 to 9600 bauds with the possibility of
C
O
M
2
Parallel line
increasing to 115 kbauds for local applications
1 parallel line (25-contact female connector)
Mass MB
L
P
T
1
Hard disk
Local memory
8 or 16 MB DRAM
Software programs loaded on hard disk
P
A
N
E
L
L
I
N
K
OS/2 operating system
NUM graphic application
PC module version 1 is a 32-bit processor card with a 486 SX or 486 DX 20 MHz
microprocessor.
It communicates via the system bus with:
-the CNC and machine processors (in the 1060 system)
-the UC SII Central Processing Unit (in the 1060 Series II system)
It can communicate with peripheral equipment via the RS 232 COM1 and COM2
serial lines and a parallel line.
PC Proc.
Console management function
The PC module manages the display and the keyboard via the video link.
The PC data are backed up by a battery with a service life of 36 months.
!
CAUTION
The battery must be replaced after 36 months of use (connected)
en-938928/215
Page 16
5.2PC Module Version 2 Characteristics
Power consumption11 W maximum
LocationLast two CNC board slots
External temperature40 °C maximum
HD
Def.
Serial lines
(See Chapter 3)
C
O
M
1
Two RS 232 serial lines (9-pin male connectors)
Maximum input voltage± 30 V
VOL typical- 9 V
VOH typical+ 9 V
Extreme loads2000 pF, 5kΩ (about 10 m of cable)
Data rate110 to 9600 bauds with the possibility of
DefCard fault
HDLit to indicate read/write accesses to the hard disk
Mass MB
P
A
N
E
L
L
I
N
K
F
L
O
P
P
Y
Hard disk
Local memory
8 or 16 MB DRAM
Software programs loaded on hard disk
OS/2 operating system
NUM graphic application
Proc. PC
16en-938928/2
PC module version 1 is a 32-bit processor card with a 486 SX or 486 DX 20 MHz
microprocessor.
It communicates via the system bus with:
-the CNC and machine processors (in the 1060 system)
-the UC SII Central Processing Unit (in the 1060 Series II system)
It can communicate with peripheral equipment via the RS 232 COM1 and COM2
serial lines and a parallel line as well as with a diskette drive via the floppy disk
connector.
Page 17
Console management function
The PC module manages the display and the keyboard via the video link.
The PC data are backed up by a battery with a service life of 5 years.
!
CAUTION
The battery must be replaced after 5 years of use (connected)
PC Module
en-938928/217
Page 18
6PC Module Connection Wiring Diagram
6.1PC Module Version 1 Connection
M
M
P
A
N
E
N
K
C
O
1
C
O
2
L
P
T
1
L
L
I
Déf.
. PC Proc
1
or
Peripherals
2
Printer
3
Operator panel
1 - Standard RS 232 serial cable
2 - Standard parallel cable
3 - Video cable (see 8.1)
REMARKCard connector J7 can be connected to a standard 3 1/2", 1.44 MB floppy disk
drive (see Secs. 8.2 and 9).
18en-938928/2
Page 19
6.2PC Module Version 2 Connection
HD
1
or
Def.
C
O
M
1
C
O
M
2
PC Module
2
Printer
Peripherals
Operator panel
L
P
T
1
3
P
A
N
F
E
L
L
O
P
L
P
I
Y
N
K
Proc. PC
1 - Standard RS 232 serial cable
2 - Standard parallel cable
3 - Video cable (see 8.1)
4 - Diskette drive cable (see 8.2.2)
4
Floppy disk
drive
en-938928/219
Page 20
7PCMCIA Module Characteristics
LocationTo the left of the PC card, assembled with it
External temperature40°C maximum
This module can only be connected to the PC version 2 card. The PC and PCMCIA
cards must be inserted together in the rack.
Network Cards Approved by NUM
IBM Ethernet 10DB2 PCMCIA card
National Semiconductor Ethernet NE4100 PCMCIA Infomover
3Com ETHERLINK III 10 base-T card
Installing the Network Card
The card is provided with a polarising (foolproofing) device so that
it can only be inserted in one direction. The polarising slot must
be at the bottom.
Position and insert the card in the slot and press it home. In case
of resistance, do not force. Make sure the card is right side up.
(width 24 mm)
LA CARTE PROC. PC
DO NOT REMOVE THIS CARD
WITHOUT THE PROC. PC CARD
NE RETIRER LA CARTE QU' AVEC
PCMCIA
PC
20en-938928/2
Polarising slot
Extracting the Network Card
Insert a small screwdriver into the bottom of the PCMCIA module
slot and press gently on the button.
The card is ejected by approximately 1/2 cm from its slot.
Interface socket: The Compaq Concerto software interface is used for the above
network cards (in the system configuration - selective installation of PCMCIA card
socket).
Page 21
8Cables
8.1Video Cable
PC Module
Solder side
19
37
20
1
12
1 - 37-contact male sub-D plug
2 - Video cable (see table for cable lengths)
3 - 37-contact female sub-D plug
Pinout for connecting a 3 1/2" diskette drive (type TEAFC FD-235HF) to the PC V2 module
Maximum length: 1 metre. For wiring recommendations, see Sec. 8.1.
Work is required on the PC module under the following circumstances:
-to replace the battery after 36 months of use for version 1 or 5 years for version 2,
-to extend the memory by adding a DRAM memory module,
-to add the PCMCIA module (PC version 2 module only).
The following diagram shows the locations involved by these operations.
PC Module
14
2
3
1 - Battery connector
2 - Battery
3 - Slot for DRAM memory module
4 - Edge connector for diskette drive (PC version 1 module only)
en-938928/225
Page 26
9.1Replacing the Battery
Refer to the diagram showing the locations on the PC module (see previous page).
!
CAUTION
The battery must be replaced within 15 minutes at most so as not to lose the data backed
up in the PC CMOS RAM. A special capacitor replaces the battery to supply the memories
during replacement.
1 - Disconnect the old battery (1) and remove it (2) from its housing.
2 - Insert the new battery (2) in its housing and connect it (1), ensuring the connector is in the right direction.
9.2Adding a DRAM Memory Module
The memory module slot is identified (3) in the diagram showing the locations on the PC module.
1 - Push the module into the connector, with the polarizing notch on the left.
2 - Tilt the module towards the vertical until it snaps into place.
Added memory does not have to be declared to the system since it is automatically recognised when power is applied.
Notch
2
1
26en-938928/2
Page 27
9.3Adding the PCMCIA Module
The PC card solder side is shown.
Post locations
PC Module
PCMCIA module
connection zone
Screw the three posts in place.
Plug the module into the location provided. The front panel must be in contact with that of the PC module.
Install the three screws.
Plug the PC module in its slot in the rack.
en-938928/227
Page 28
10Using the PC
10.1Applications Which Can Be Used by the PC
The PC must have OS/2 operating system in version 2.1 or above.
This operating system allows the following types of applications to be executed:
-DOS applications in full screen mode or in a window of the Presentation Manager desktop,
-Windows applications in version 3 and 3.11 for OS2/Warp in a full screen session or a Desktop window of
Presentation Manager
-OS/2 16-bit applications developed under OS/2 versions 1.x,
-OS/2 32-bit applications developed under OS/2 versions 2.x.
All the applications are executed in protected mode. OS/2 is a multitasking pre-emptive shared time system affording
full memory protection between each application.
For more details on the OS/2 operating system, refer to the IBM documentation, especially as regards DOS and
Windows compatibility.
10.2Using the PC
10.2.1Config.sys
-The 1060 system can be accessed by a driver which gives access to both the NUM application and the customer
application(s) using the UNI-TE library. The command:
DEVICE=C:\NUM\DRIVER\MEM_GLB.SYS is used to install the driver
-An image of the NUM application (GR_PC.EXE) is contained in the OS/2 STARTUP directory. This directory
is hidden in the STARTUP folder of OS/2. This folder is hidden and is therefore inaccessible to the customer.
CAUTION
!
The following command must mandatorily be included in config.sys:
SETRESTARTOBJECTS=STARTUPFOLDERSONLY, to guarantee that only the NUM
application contained in the STARTUP folder is started at system startup.
-Installation of a mouse. The user can connect a mouse to serial port 1 so that it is recognised by OS/2. The
config.sys file must be modified by deleting the letters REM at the beginning of certain lines:
Delete the letters REM from the beginning of the following line in config.sys:
REM BASE DEV=IBM1FLPY.ADD
REMARKIt is strongly recommended to copy the config.sys file into another directory
before making any changes to it.
The changes made to config.sys are not applied until the system is rebooted
(reset the system).
28en-938928/2
Page 29
PC Module
10.2.2NUM Shutdown
Shutdown can be accessed in two ways:
-Access from the NUM application
-Access from the user application.
Access from the NUM Application
Pressing keys Alt and F12 in the NUM application shuts down the PCNC, i.e. all the open applications are closed,
including the NUM application. Shutdown is indicated to the other processors which are then stopped. To be run, this
procedure requires confirmation from the operator in a message box.
Reset after Setting Machine Parameters
In earlier versions, all the applications running on the PCNC were killed by a reset, because it was not possible to tell
which ones accessed the system resources (by requests), made unavailable by a reset.
A new file, REINIT.CFG, is read in the event of a reset:
-If this file is not present or is empty, operation is the same as before, i.e. all the applications are killed.
-If this file contains the name of an application, only this application is killed, but the other applications continue to
run.
The REINIT.CFG file must be located in directory C:\NUM\GRAPHIC.
This file can contain a maximum of 16 application names.
All the applications dialoguing with the system by requests must be included in this file.
If an application is started by the NUM_CLIENT object, it must be included in this file.
The REINIT.CFG file can be edited while the NUM application is running, but a reset is required to take into account
any changes made to it.
Important remark:
-If several instances of the same application are running simultaneously (e.g. C:\OS2\CMD.EXE corresponding
to an OS/2 session window), they are all killed.
-For Windows sessions, if several Windows applications are running in the same session, they are all killed,
since there is no way of identifying a given executable, and the entire session is therefore killed.
The NAMEAPP.EXE utility located in C:\NUM\GRAPHIC is used to identify the applications running when it is started.
It is necessary to use this utility to determine the exact names of the applications (especially for Windows applications).
If several Windows applications are running in the same DOS machine (Virtual DOS Machine), the only way of
identifying the VDM is by the name of the first Windows application started. This is the name which must be stored
in REINIT.CFG (to be checked with NAMEAPP.EXE). The complete VDM is killed.
en-938928/229
Page 30
Shutdown
The SHUTDOWN.EXE Num executable was initially run from the NUM application by pressing keys Alt+F12. It killed
all the applications running in the system and started the OS/2 shutdown procedure. This was mainly for the purpose
of requiring the operator to confirm only the shutdown request. In addition, the server and pipeline also invoked
SHUTDOWN.EXE.
Now, pressing the same keys also runs SHUTDOWN.EXE, but this file kills the applications declared in REINIT.CFG,
stops the NUM graphic application, indicates to the other processors that the PCNC is stopping and runs the
SHUT.CMD file. SHUT.CMD contains the default command line START/N C:\NUM\GRAPHIC\KILLAPPS.EXE 6 in
which KILLAPPS.EXE is the executable that performs the final shutdown and stops the system.
It is necessary to specify a parameter when using KILLAPPS.EXE (6 in the above case). This parameter corresponds
to the process ID of the Num application. It can be obtained by running the NAMEAPP.EXE utility in directory
C:\NUM\GRAPHIC. This utility gives the name and ID of each process. In particular, when a network is loaded on
a PCNC under Warp before the NUM application, the parameter specified in SHUT.CMD is no longer 6, but the value
of the GR_PC.EXE process ID obtained from NAMEAPP.EXE.
This method preserves compatibility for the server and pipeline, since the same filename is always invoked. In addition,
it allows the user to edit the SHUT.CMD file, replacing the default line by a line with the format START/N pathname\user
_filename, where user_filename is the name of the user executable used to cleanly shut down the applications (e.g.
networks) and run either KILLAPS.EXE or the OS/2 SHUTDOWN.EXE located in C:\OS2\INSTALL. The main
difference between these two files is that the OS/2 SHUTDOWN.EXE file displays a confirm dialogue box for windowed
applications before proceeding to shutdown.
To summarise:
-If REINIT.CFG is empty, all the applications are killed by a reset (machine parameter modification, etc.)
-If REINIT.CFG is not empty, it should contain the names of all the applications (maximum 16) using 1060 system
resources (UNI-OS2, EDIT-PP, NUM-Bu, etc.).
Access from a User Application
OS/2 Type User Application
The executable running the shutdown procedure is located on the hard disk so that it can be used by an OS/2 type
user application. This executable is called SHUTDOWN.EXE and is located in directory C:\NUM\GRAPHIC.
In this case, no confirmation is requested of the operator.
Application Using the Pipe
For user applications using the pipe, the pipe source code is modified and includes the possibility of requesting
shutdown from a DOS application. The OS/2 pipe code is modified in the same way.
The shutdown is carried out by calling function SHUT_DOWN_PCNC() supplied in library lib_dnc.lib from a DOS or
WINDOWS application. OS/2 is closed without requesting confirmation.
The pipe is a communication facility supplied by NUM between Windows and OS/2 applications. It is used for issuing
DNC1000 requests and receiving replies to these requests. The pipe is created and managed by programme
UNI_OS2.EXE.
WINDOWS applications can send and receive information to and from the pipe using LIB_INIT.DLL.
30en-938928/2
Page 31
PC Module
In this case, no confirmation is requested of the operator.
!
CAUTION
So as not to corrupt the hard disk, it is recommended to carry out a shutdown procedure
before turning off power.
During the shutdown, all the applications are closed without warning.
If an editor was open, any modifications made are lost. This is also the case for a reset
after modifying machine parameters.
10.2.3Opening a User Application at Startup
The PCNC can open a user application during system startup. To do so, the user must configure his system by creating
a programme object on the OS/2 desktop whose identifier is known to the NUM application. Use the CREATPRG.CMD
programme supplied on the hard disk in directory C:\NUM.
In an OS/2 session, go into directory C:\NUM and run CREATPRG. The programme creates four programme objects:
“NUM client”, “START Appli”, “NUM Backup” and “EDIT-PP”. The last two are Windows utilities used for saving
machine data and managing files (START Appli is used by the server). Configure the "NUM client" programme object
created on the desktop by modifying its parameters so that it calls the required user application. The user application
can be an OS/2, DOS or WINDOWS executable.
Only the application associated with the "NUM client" object is automatically opened when the NUM application is
started, contrary to the one that can be associated with the "START Appli" object accessible by the PCNC server.
REMARKThe user can also run a .CMD command file to start several applications.
After completing the configuration, shut down the system by an OS/2 shutdown accessible from the context-sensitive
menu of the desktop (do not use the NUM shutdown procedure) then reset the system.
The NUM application is started automatically and handles synchronisation with the other microprocessors.
After initialisation, the NUM application detects whether a user application is present on the system. If so, the NUM
application is minimised to an icon and the user application is automatically started. If not, the NUM application
continues to occupy the full screen.
The user can return to the NUM application from his application by displaying the list of active tasks by "Ctrl and Esc"
and selecting the NUM task.
10.2.4NUM Task/User Task Toggle
The NUM application run when the PCNC is started can be minimised to an icon by simultaneously pressing Alt and
F9, which causes a return to the desktop if no other application is running.
When minimised, the icon is placed in the folder of minimised windows. The operator is on the OS/2 desktop and can
run OS/2 applications.
When the NUM application occupies the full screen, OS/2 controls the actions initiated by simultaneously pressing the
following keys:
-Ctrl and Esc to access the list of tasks
-Alt and Tab to display another open application
-Ctrl, Alt, Del are inoperative.
Two other ways of toggling are available:
-"Iconification" (minimise) (see Sec. 10.4.7)
-"Restitution" (restore) (see Sec. 10.4.8).
en-938928/231
Page 32
10.2.5Creating System Diskettes
Available in OS/2 version 3 and above.
Since the PCNC is supplied with the software already installed and without installation diskettes, it is recommended
to created your own installation diskettes, in particular OS/2.
Use the following procedure:
-On the desktop, double-click the "Diskette Factory" icon
-In the window that opens, select the name of the product for which the installation diskettes are to be created
-Click "Create" and follow the instructions.
10.2.6Regenerating the Initial Configuration
If a problem occurs, an archive containing the initial system desktop configuration can be restored (but not the NUM
application).
Reboot the system. When a white rectangle appears in the upper left-hand corner of the screen, press ALT+F1.
A utility menu is displayed. Item “X” allows you to regenerate the initial desktop configuration.
10.2.7Reinstalling the NUM Application
You can reinstall the NUM application and the initial system configuration (except screen drivers - original config.sys
restored) as follows.
Reboot the system. When a white rectangle appears in the upper left-hand corner of the screen, press ALT+F1.
A utility menu is displayed. Item “R” allows you to completely reinstall the NUM application and the initial configuration
delivered. The procedure is started by confirming this selection. The files are restored, the system is booted and an
OS/2 session window is opened. Confirm when requested. At the end of the procedure, a shutdown is executed and
installation is completed.
10.2.8Backing up the NUM Application
You can create a backup diskette for the NUM application. To do so, return to the desktop (by pressing ALT+F9 when
in the NUM 1060 graphic user interface). Run the Diskette Factory utility and select Num appli to generate the backup
diskette with the NUM application.
To restore the NUM application from the backup diskette, run Install from the diskette (the graphic configuration in
mode SVGA 256c with CL5428 or CL5429 drivers is not restored).
10.2.9Restoring a Disk: CHKDSK
Exceptionally, the system may be blocked in the case of a general power failure when it was not possible to shut it down
first.
When turned back on, the system refuses to boot and displays the message:
-"Impossible to find PCSHELL.EXE. The system is stopped".
Use the following procedure to correct this problem. It is necessary to have a diskette drive connected to the PC card
and an OS/2 system diskette in HPFS format.
-Insert the diskette in the drive and boot from the diskette
-When the prompt A:> is displayed, enter CHKDSK C:/F.
This starts restoring of the diskette. When it is completed, remove the diskette from the drive and reset.
32en-938928/2
Page 33
PC Module
10.2.10Modifying the NUM Application Task Priorities
The task priorities of the GR_PC.EXE application can be modified. Version C3 of the PCNC software allows the
priorities of the four threads of the NUM graphic application to be modified.
10.2.10.1Description of the Threads
NumExcep
This thread scans the global system memory to check for:
-Reboot requests from other processors,
-Exceptions from the other processors.
It is always active, even when the application is minimised.
Its default priority is Class=2 and Delta=20:
DosSetPriority(2, 2, 20, NumExcep).
NumSelect
This thread reads the graphic command blocks placed in the global memory by the CNC processor, performs INTEL/
MOTOROLA conversion and handles display.
It is suspended when the application is minimised.
Its default priority is Class=2 and Delta=20:
DosSetPriority(2, 2, 20, NumSelect).
NumStat
This thread manages display in the STATUS window.
It is suspended when the application is minimised.
Its default priority is Class=2 and Delta=20:
DosSetPriority(2, 2, 20, NumStat).
NumThread
This thread manages Presentation Manager messages such as the window minimisation command and keyboard
entries transmitted to other processors.
It is always active, even when the application is minimised.
Its default priority is Class=3 and Delta=20:
DosSetPriority(2, 3, 20, NumThread).
10.2.10.2Modifying the Priorities
The priorities (Class and Delta) of the four threads are set by sending parameters to the GR_PC.EXE executable.
Eight parameters must be passed:
-NumExcep Class
-NumExcep Delta
-NumSelect Class
-NumSelect Delta
en-938928/233
Page 34
-NumStat Class
-NumStat Delta
-NumThread Class
-NumThread Delta.
If one of these parameters is missing or a ninth is added, the default priority definitions are applied.
The Class parameters must have a value ≥ 1 and ≤ 4 and the Delta parameters must have a value ≥ -31 and ≤ +31;
otherwise, the default values are applied.
10.2.10.3Entering the Parameters
To enter the parameters, call the context-sensitive menu of the GR_PC.EXE programme object under C:\NUM\GRAPHIC
and select "Parameters". On the "Programme" page, enter the 8 numerical values separated by spaces in the
"Parameters" field.
Then shut down OS/2 and reset the system.
The modifications are not applied until after the system reset.
10.2.11Modifying the Colour Palette
Starting with version C3 of the PCNC software, the NUM graphic application colour palette can be edited.
The colour palette is edited using the values entered in file GR_USER.PAL in C:\NUM\GRAPHIC.
This file contains the values corresponding to the basic colours defined by their R, G and B components.
The values are entered hexadecimally in lower case. The modified colours are applied after a system reset.
File of Basic Colours
The basic colours contained in the file are in lower case
{ /* RGB*/
The PC integrated in the CNC allows the use of specific applications:
- customised interface,
- read/write access to the CNC and PLC data (e.g. possibility of modifying the tool dimensions table),
- large volume of mass storage provided by the hard disk for storing the part or PLC programmes and transferring them
to the CNC or PLC memory when required,
- use of a simplified part programming language suited to the application (e.g. language using graphic display) which
is then converted into ISO blocks and can be transmitted on request to the CNC for immediate (drip feed mode) or
deferred use (storage).
The applications running under OS/2 can be developed using IBM C Set/2 including:
- C/C++ tools,
- WorkFrame,
- ToolKit for OS/2.
The applications communicate with the CNC and the PLC through UNI-TE protocol. They use UNI-TE primitives (see
Sec. 10.3.1) to set up all calls and send requests (see Sec. 10.3.2).
The primitive files on the diskette (.obj, .h and .dll files) must be linked with the application to obtain an executable.
10.3.1UNI-TE Primitives
10.3.1.1Accessing UNI-TE: Open_Unite() Function
Syntax
USHORT Open_Unite (void)
Description
This primitive lets the application communicate with the 1060 system in requester mode and access requests.
It must always be called at the start of the application before any requests are used.
if { (error = Open_Unite ())
printf (("\n %d unite opening error", error);}
10.3.1.2Opening Logic Ports: Get_Port() Function
Syntax
USHORT Get_Port (UCHAR *port)
&port:address to which the system returns the port number
Description
This primitive is used to allocate a logic port (number 0x70 to 0x7F) through which the requests are sent.
It returns a free logic port number which can be used by the application.
A port has to be opened in order to transmit requests.
Returned code
Code MeaningCodeMeaning
0OK2UNI-TE invalid: Open_Unite not executed
1no port available3system error (when OS/2 system
functions were called)
Example
for (i = 0 ; i < 15 ; i++)
{ if ( (error = Get_Port (&port[i])) !=0)
{ printf ("\n error %d opening port[%d]", error, i); }
else
{ printf ("\n OK port[%] =%x", i, port[i]); }
}
10.3.1.3Freeing Logic Ports: Free_Port Function
Syntax
USHORT Free_Port (UCHAR port)
port: port number to free (0x70 to 0x7F)
Description
This primitive frees the port whose number is given as argument.
A port must not be freed until all the answers awaited have been received.
36en-938928/2
Page 37
PC Module
Returned code
Code MeaningCodeMeaning
0OK2UNI-TE invalid: Open_Unite not executed
1task does not own the port3system error (when searching for the
calling process identifier)
Example
for (i = 0 ; i < 15 ; i++)
{ if ( (error = Free_Port (port[i])) !=0)
{ printf ("\n error %d freeing port[%]", error, i); }
}
10.3.1.4Sending a Request : Unito() Function
Syntax
UCHAR Unito (UCHAR port, void *adr_buf)
port:source port number (0x70 to 0x7F)
&adr_buf:address of the buffer to be sent
Description
This primitive allows a request to be sent to a server on one of the 16 source ports addressed by Get_Port.
The answer to a request must be requested before sending another request to the same port.
Returned code
Code MeaningCodeMeaning
0send OK4port number invalid or not owned
1buffer too long5no server for this request
2buffer length zero6system 1060 access error
3queue full: Unito not followed by Uniti
port:source port number (0x70 to 0x7F)
&adr_buf:address of the buffer which will receive the response
Description
This primitive is used to receive an answer to a request sent from the same source port.
As long as code 0x08 is returned (processing of request by server not completed), the function must be repeated
periodically until the answer is obtained.
Returned code
Code MeaningCodeMeaning
0read OK7buffer too small to contain the answer
4 port number invalid or not owned8no message at this port number
6system 1060 access error
Receive buffer structure
Buffer start @
(1 word, answer size + 2)
(1 word, maximum value 128)
Buffer size
Answer size
Answer
(128 bytes maximum)
1 word
Written by the
user programme
Written by the
NUM software
38en-938928/2
Page 39
Example
BufferResp . BufferSize = xx ;
BufferResp . ReqSize = 0 ;
do { error = Uniti (port[i], &BufferResp);
} while (error == NO_MESSAGE);
10.3.1.6Example of Use of UNI-TE Primitives in an Application
The Write-Block request is used to add, modify or delete a part programme block.
REMARKUnlike the other requests, the Write-Block request can contain up to 132 bytes
Transmission
Request code / Additional request code / Programme number / Block number / Block Offset /
Block length / Data
Request code1 byte:0xF5
Additional request code1 byte:0x51
Programme number1 long word: indexed programme number (program number x 10 +
axis group number)
Block number1 word: block number pointed to
Block offset1 word: rank of unnumbered block pointed to after the previously
selected block (0 to stay on this block)
Block length1 word: number of data bytes (120 maximum)
DataCharacter string (ASCII codes) forming the block to be sent
(the block must end with LF : ASCII code 0x0A)
- "-LF" to delete the block selected
- "+[block]LF" to insert the block after the block selected
- "#[block]LF" to substitute the block for the block selected
REMARKThe block writing method is similar to the block modification method (see
Operator Manual).
44en-938928/2
Page 45
PC Module
Reception
Answer code / Additional answer code
Answer code1 byte:0xF5
Additional answer code1 byte:0x81
The answer code and the additional answer code are not significant: it is the code returned by the Uniti() function that
gives the request execution report.
10.3.2.5Reserving Memory Space
Description
The Reserve-Memory request is used to reserve memory space for making modifications to an existing programme
without being in reset status.
Request code1 byte:0xF5
Additional request code1 byte:0x52
Programme number1 long word: indexed programme number (programme number x 10 + axis group
number)
Memory size1 long word: size in bytes to be reserved for the program (0 to keep the program
at its present size)
Reception
Answer code / Additional answer code
Answer code1 byte:0xF5
Additional answer code1 byte:0x82
The answer code and additional answer code are not significant: it is the code returned by the Uniti() function that gives
the request execution report.
en-938928/245
Page 46
10.4Functional Description of the PCNC Server
The CNC can send requests to the PC module. In this case, the PC module is the server.
Whenever a request is sent to the PC, it is received by the driver, which wakes up the server task. This task recovers
the data, decodes the request, performs the necessary processing and acknowledges the request by updating the
control data.
10.4.1OPEN-DOWNLOAD-SEQUENCE Request
Description
This request starts loading a file on the PCNC HD (hard disk).
Negative Answer
Answer code:1 byte:0x6B
Status:1 byte:0x03: Memory full
0x04: no file open
0x08: download already in progress
0x09: data length inconsistent with request received
0x0B: a block has more than 120 characters
0x0D: incoherent data
en-938928/247
Page 48
0x19: sequence error
0x1C: system error
Segment number:word
10.4.3CLOSE-DOWNLOAD-SEQUENCE Request
Definition
This request is used to close download of a file already open.
Request code:1 byte:0x3D
Category:1 byte
File identifier:2 long words (long word 1 at the low address, long word 2 at the high address)
long word 1: file identifier
long word 2: not significant
48en-938928/2
Page 49
PC Module
REMARKThe high byte of long word 1 specifies the file type. Type 9 corresponds to the
PCNC.
Byte 2 gives the subtype:
-value 0: file directory on the disk according to the pathname given in
Filename, syntax: "C:\*.*" or "C:\pathname\*.extension"
The data Read format is 8.3 (operates only on 8.3 format files in HPFS
mode) : a filename is encoded on 3 long words
-value 1: file stored on the disk.
The next two bytes are not significant.
Extension code:1 byte:0x01
Optional field (see next field)
Filename:table of bytes (ASCII character string beginning with a length byte)
Optional field present only if the Extension code is present and equal to 0x01
This request minimises the NUM application icon on the PCNC. After reception of this request, the icon associated
with the NUM application is placed in the "Minimised windows" folder.
This request is used to inhibit access to the OS/2 desktop (the PCNC is locked on the application in the foreground).
Calling this request toggles the system status from locked to unlocked or vice versa.
Negative Answer
Answer code:1 byte:0xF5
Additional request code:1 byte:0x94
Status:1 byte:0x1C: system error
A second request of this type returns the system to its initial state.
REMARKOnly operates for a full screen OS/2 application, but not for a DOS or Win/OS2
Negative Answer
Answer code:1 byte:0xF5
Additional request code:1 byte:0x96
Status:1 byte:0x1C
Reception of this request runs an executable that shuts down the PCNC and reports shutdown to the other processors.
REMARKAny changes made at OS/2 level (icon moved, session parameters changed)
are lost with this type of shutdown. To save them, the system must be shut
down using the conventional OS/2 shutdown procedure (accessible on the OS/
2 desktop context-sensitive menu).
en-938928/253
Page 54
10.4.11START-APPLI Request
Definition
This request is used to run an application (executable) present on the hard disk, and associated with the START-APPLI
file. This object must first be created by running the creatprg.cmd file from C:\num.
Request code:1 byte:0xF5
Category:1 byte
Additional request code:1 byte:0x46
File identifier:long word
Extension code:1 byte:0x01: Optional field (see next field)
54en-938928/2
Page 55
Filename:table of bytes (ASCII character string beginning with a length byte)
Optional field present only if Extension code is present and equal to 0x01
Syntax: "C:\filename" or "C:\path\filename"
Answer Format
Answer code/Additional answer or request code/Status
This request allows a server to send information without having first received a request. No answer is required of the
receiver.
The PLC sends this request by function Uneto.
The CNC server sends this request when it encounters instruction $9 in the programme being executed.
In the case of the PLC, no report is possible so there is no guarantee that the data were correctly received.
Description of Instruction $i in the Part Programme
In this instruction, the character $ is followed by number i then a character string. This string is the message to be sent.
For the PCNC, i = 9 for unsolicited data sent to the PCNC user programme.
This message is of the nonblocking type. Execution of the part programme continues without waiting for an answer.
Request code:1 byte:0xFc
Category:1 byte:0x06
Object-address:1 byte:(code giving the origin of the unsolicited data; optional except on a
network)
Index of the axis group
Data-length:1 byte:number of bytes contained in the Data-specific field
Data-specific:table of bytes
Message contained in the part programme after $9
The message sent by the CNC is accessible via a port. Eight ports are available. Each port is assigned to an axis group:
-$90 for group 1,
-$91 for group 2,
-• • • • •
-$97 for group 8
$98 : unsolicited PLC data.
Answer Format
There is no answer to this request. It can, however, in the case of the CNC, be associated with another UNI-TE request
sent by the recipient of the unsolicited data. This request then acknowledges the unsolicited data. The method
described below can be used to cause a wait for this acknowledgement.
REMARKThere is no possible acknowledgement in the case of unsolicited data sent by
the PLC.
Message Acknowledgement
After sending a blocking type message ($91), the CNC goes on wait for a report from the application. The report must
be sent by the application processing the unsolicited data to stop cyclic retransmission of the data (approximately once
every 10 seconds). This acknowledgement is generated by sending the UNITEWRITE-OBJECT request with segment
226 (and an object-address corresponding to the correct axis group). Writing of this segment can achieve two different
actions:
-Writing of the value 1 means that the message was received by the remote application. The CNC stops cyclic
retransmission of the message but part programme execution remains suspended,
-Writing of the value 2 cause execution of the part programme to be resumed.
Acquisition of a Return Value
After transmission of a blocking message, it is possible to recover a value sent by the remote application in the part
programme by programming the instruction Ln = $9 after instruction $9 described above.
The value to be recovered is written by sending the UNITE WRITE-OBJECT request with segment = 224 (and an
object-address corresponding to the correct axis group). The long word forming the data of this request is assigned
to parameter Ln.
en-938928/257
Page 58
The use of the "Unsolicited data" request requires initialising the resources and allocating the port(s) corresponding
to the axis group(s) sending them. This is done by calling:
-USHORT Open_Buf_Uns_Data(void) which allows the application to obtain access to the unsolicited data. It must
be called at the beginning of the user application.
Return code:0: OK
other: invalid system access.
-USHORT Get_Port_S(UCHAR*port,UCHART*typ_port) allows the allocation of ports:
typ_port:0: requester mode; a port (from $70 to $7F) is returned,
1: Server mode; access to unsolicited data: it is then necessary to send a port number (from $90
to $98) in *port to specify where the unsolicited data are to be received.
High Speed Drip Feed Mode
The high speed drip feed mode is included in a Windows utility accessible from the Diskette Service CNC menu.
The NUM application is minimised to an icon and the EDIT-PP application appears.
The high speed drip feed mode is activated by key F2 after selecting the programme to be run. When drip feed mode
is active, press key F9 to return to the CNC application. EDIT-PP continues to run. To stop and exit EDIT-PP, press
ESC. This does not stop the current file transfer, since the task performing high speed drip feed is independent of EDITPP once activated.
Utilities
Two Windows utilities are available:
-EDIT-PP (see above) for managing files
-NUM Backup for backing up machine data and programmes accessible by item 6, Backup, of the CNC Utilities
menu.
These utilities each use one of the 16 UNITE ports to dialogue with the system and one dedicated pipeline (UNI-OS2).
On-line help is provided for using these utilities.
58en-938928/2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.