num 1060 User Manual

NUM 1060
PC
MODULE
0101938928/2
09-97 en-938928/2
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 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.
© Copyright NUM 1997.
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.
© Copyright NUM 1997 software NUM 1060.
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.
2 en-938928/2
Table of Contents
1 General 7 2 System Architecture 9
2.1 PCNC 1060 Series II System Architecture 9
2.2 PCNC 1060 System Architecture 10
3 Card Layout in the Rack 11
3.1 Card Layout in the 1060 Series II Rack 11
3.2 Card Layout in the 1060 Rack 12
4 PCNC Configurations 13
4.1 PCNC 1060 Series II Configuration 13
4.2 PCNC 1060 Configuration 14
5 PC Module Characteristics 15
5.1 PC Module Version 1 Characteristics 15
5.2 PC Module Version 2 Characteristics 16
6 PC Module Connection Wiring Diagram 18
6.1 PC Module Version 1 Connection 18
6.2 PC Module Version 2 Connection 19
7 PCMCIA Module Characteristics 20 8 Cables 21
8.1 Video Cable 21
8.2 Diskette Drive Cable 23
8.2.1 PC Version 1 Module 23
8.2.2 PC Version 2 Module 24
9 Work on the PC Module 25
9.1 Replacing the Battery 26
9.2 Adding a DRAM Memory Module 26
9.3 Adding the PCMCIA Module 27
10 Using the PC 28
10.1 Applications Which Can Be Used by the PC 28
10.2 Using the PC 28
10.2.1 Config.sys 28
10.2.2 NUM Shutdown 29
10.2.3 Opening a User Application at Startup 31
10.2.4 NUM Task/User Task Toggle 31
10.2.5 Creating System Diskettes 32
10.2.6 Regenerating the Initial Configuration 32
10.2.7 Reinstalling the NUM Application 32
10.2.8 Backing up the NUM Application 32
10.2.9 Restoring a Disk: CHKDSK 32
10.2.10 Modifying the NUM Application Task Priorities 33
10.2.10.1Description of the Threads 33
10.2.10.2Modifying the Priorities 33
10.2.10.3Entering the Parameters 34
10.2.11 Modifying the Colour Palette 34
en-938928/2 3
10.3 Development of Specific Applications 35
10.3.1 UNI-TE Primitives 35
10.3.1.1 Accessing UNI-TE: Open_Unite() Function 35
10.3.1.2 Opening Logic Ports: Get_Port() Function 36
10.3.1.3 Freeing Logic Ports: Free_Port Function 36
10.3.1.4 Sending a Request : Unito() Function 37
10.3.1.5 Receiving an Answer: Uniti() Function 38
10.3.1.6 Example of Use of UNI-TE Primitives in an Application 39
10.3.2 Requests Accessible to the PC 40
10.3.2.1 List of CNC Requests 40
10.3.2.2 List of PLC Requests 42
10.3.2.3 Reading Part Programme Blocks 43
10.3.2.4 Writing Part Programme Blocks 44
10.3.2.5 Reserving Memory Space 45
10.4 Functional Description of the PCNC Server 46
10.4.1 OPEN-DOWNLOAD-SEQUENCE Request 46
10.4.2 WRITE-DOWNLOAD-SEGMENT Request 47
10.4.3 CLOSE-DOWNLOAD-SEQUENCE Request 48
10.4.4 OPEN-UPLOAD-SEQUENCE Request 48
10.4.5 READ-UPLOAD-SEGMENT 49
10.4.6 CLOSE-UPLOAD-SEQUENCE 50
10.4.7 "ICONIFICATION" (Minimise) Request 51
10.4.8 "RESTITUTION" (Restore) Request 51
10.4.9 "VERROUILLAGE/DEVERROUILLAGE" (Lock/Unlock) Request 52
10.4.10 SHUTDOWN Request 53
10.4.11 START-APPLI Request 54
10.4.12 DELETE-FILE Request 54
10.4.13 READ-MEMORY-FREE 55
10.4.14 UNSOLICITED-DATA Request 56
4 en-938928/2
Record of Revisions
Date Revision Pages revised Pages added Pages deleted
02 - 96 1 Document rewrite 09 - 97 2 Document rewrite
DOCUMENT REVISION
Date Revision Reason for revisions
08 - 94 0 Document creation 02 - 96 1 Conforming 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 - 97 2 Conforming to NUM 1060 software - index L
en-938928/2 5
6 en-938928/2
PC Module
1 General
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.
REMARK The 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/2 7
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.
8 en-938928/2
2 System Architecture
2.1 PCNC 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/2 9
2.2 PCNC 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
10 en-938928/2
Parallel link
PC Module
3 Card 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.1 Card 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/2 11
3.2 Card Layout in the 1060 Rack
Slots for CNC cards
11
121314 109876543210
To left of last
CNC card
PCMCIA
12 11 10 8 7 6 5
Slots for input/output cards
PC module
9
Memory card
CNC processor
Machine processor
Power supply
12 en-938928/2
4 PCNC Configurations
4.1 PCNC 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/2 13
4.2 PCNC 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
14 en-938928/2
Sensor or
Handwheel
rule
Motor
Analogue
inputs/outputs
External interrupts
NUM and Customer
applications
Servo-drive
5 PC Module Characteristics
5.1 PC Module Version 1 Characteristics
Power consumption 11 W maximum Location Last two CNC board slots
External temperature 40 °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 loads 2000 pF, 5k (about 10 m of cable) Data rate 110 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/2 15
5.2 PC Module Version 2 Characteristics
Power consumption 11 W maximum Location Last two CNC board slots
External temperature 40 °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 loads 2000 pF, 5k (about 10 m of cable) Data rate 110 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)
Floppy
L P T
1
1 floppy drive connector (37-contact female connector)
LEDs
Def Card fault HD Lit 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
16 en-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.
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/2 17
6 PC Module Connection Wiring Diagram
6.1 PC 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)
REMARK Card connector J7 can be connected to a standard 3 1/2", 1.44 MB floppy disk
drive (see Secs. 8.2 and 9).
18 en-938928/2
Loading...
+ 40 hidden pages