744 gb 9708b aaaa aaaa aa aa a a aa a aa a aa a aaaa aaaa aa aa aa a aa a a abg-1 abg-2 abg-80-led...

217
9708b 377 744 GB ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation with the SF 3 control block Manual Any type of ABG

Upload: lynhi

Post on 16-Mar-2018

254 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

9708b

377

744

GB

AAAAAAAAAAAAAAAA

AAAAAA

AAAAAA

AAAAAA

AAAAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAA

AAAAAAAA

AAAAAAAA

AAAAAAAAAAAAAAAA

AAAAAAAA

AAAA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

AAAA

AA

AA

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

ABG-1ABG-2

ABG-80-LEDFD-2/40-S

Festo Software Tools

Display and operation with theSF 3 control block

Manual

Any type ofABG

KI-TD
Nur gültig bei Übereinstimmung mit der dem Produkt beiliegenden gedruckten Dokumentation! Vergleichen Sie diese Ausgabenkennzeichnungen. Only valid in agreement with the printed documentation accompanying the product! Compare this edition code. Sólo válido en conformidad con la documentación impresa que está incluida en el producto. Comparar estos códigos de edición. Valable seulement en accord avec la documentation jointe au produit ! Comparez les références de ces éditions. Validità soggetta alla condizione che il contenuto coincida con la documentazione stampata acclusa al prodotto. Confrontare i codici delle versioni. Gäller endast vid överensstämmelse med den till produkten bifogade tryckta dokumentationen! Jämför dessa utgivningskoder.
Page 2: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The manual "Display and operation with the SF 3"assumes that the user is already familiar with theFesto software package FST 200 "Statement listand ladder diagram of the SF 3" (version 3.2 orhigher). The user must be familiar especially withthe use of the software modules.

This manual describes how the user, who isfamiliar with the programming of the SF 3 controlblock, can do the following:

• create software modules as drivers for displayand operating units and incorporate these intothe user programs;

• create/modify the necessary texts for thedisplays;

• use the test possibilities with display emula-tors and display tests.

Festo reserves the right to make modifications inthe sense of further technical developments.

Authors: D. Ruckwied, E. Klotz, P. MauchEditors: H. J. Drung, M. HolderTranslation: D. SmithLayout: Festo AG & Co., Dept. PV-IDMType: DUCOM

Edition: August 1997

© (Festo AG & Co., Esslingen,Federal Republic of Germany)

The copying, distribution and utilization of thisdocument as well as the communication of itscontents to others without the expressed authori-zation is prohibited. Offenders will be held liablefor the payment of damages. All rights reserved,in particular the right to carry out patent, utilitymodel or ornamental design registrations.

ABG-SF 3

9708b I

Page 3: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

IBM® Registered trade mark of International Business MachinesCorporation

Microsoft® Registered trade mark of Microsoft Corporation

Display and operation - SF 3Display and keyboard driver for the SF 3 control block

Order no.: 377 744Title: Manual Designation: P.BE-ABGSF3-GB

ABG-SF 3

II 9708b

Page 4: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents Information on this manual . . . . . . . . . . . . . . . . VIGuideline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VIII

1. Summary "Display and operation with the SF 3" . . . . . . . . . . . . . . . . . . . 1-1

1.1 Display and operating units on the SF 3 control block. . . . . . . . . . . . . . . . . 1-3

1.1.1 Division of ABG types. . . . . . . . . . . . . . 1-61.1.2 Operating principle of the

software modules . . . . . . . . . . . . . . . . . 1-81.1.3 Text output procedure

(operating modes) . . . . . . . . . . . . . . . . 1-101.2 Summary of software modules

for the SF 3 control block . . . . . . . . . 1-121.2.1 Selecting the software modules . . . . . 1-121.2.2 MAK files for further displays and

other controllers. . . . . . . . . . . . . . . . . . 1-141.2.3 Software, devices and accessories

required . . . . . . . . . . . . . . . . . . . . . . . . 1-151.3 Differences between SF 3 and

SB202 . . . . . . . . . . . . . . . . . . . . . . . . . 1-16

2. FST200 display editor. . . . . . . . . . . . . 2-12.1 Accessing the display editor. . . . . . . . . 2-52.2 Creating a display file . . . . . . . . . . . . . . 2-72.2.1 The screen layout of the editor . . . . . 2-112.2.2 Editing mode . . . . . . . . . . . . . . . . . . . . 2-142.2.3 Text mode . . . . . . . . . . . . . . . . . . . . . . 2-152.2.4 Control character mode . . . . . . . . . . . 2-192.2.5 Additional functions of the editor . . . . 2-232.2.6 Quit editor . . . . . . . . . . . . . . . . . . . . . . 2-262.3 Delete display file . . . . . . . . . . . . . . . . 2-282.4 Print display file. . . . . . . . . . . . . . . . . . 2-292.5 Loading the display RAM via

the RS232 (V24) interface . . . . . . . . . 2-312.6 Programming EPROMs. . . . . . . . . . . . 2-33

ABG-SF 3

9708b III

Page 5: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

3. Creating the software modulesfrom the MAK files . . . . . . . . . . . . . . . 3-1

3.1 General data for module creation . . . . 3-53.2 Creating the module with the

display editor . . . . . . . . . . . . . . . . . . . . . 3-83.3 Creating a module with the

function Include module . . . . . . . . . . . 3-13

4. Description of the modulesAccessing in the user program . . . . 4-1

4.1 General instructions on accessing modules . . . . . . . . . . . . . . . . . . . . . . . . 4-5

4.1.1 Initializing modules or displays. . . . . . . 4-64.1.2 Cyclic module access . . . . . . . . . . . . . . 4-74.1.3 Evaluation of status flags/

error messages . . . . . . . . . . . . . . . . . . . 4-84.1.4 Software modules and

command interpreter . . . . . . . . . . . . . . . 4-94.2 Module as display driver,

texts in the SF 3 (internal texts) . . . . 4-104.3 Module as display driver,

texts in the display . . . . . . . . . . . . . . . 4-164.4 Module as input driver for

key interrogation/keyboard buffer . . . . 4-234.5 Module as input driver for

key interrogation/LED display . . . . . . . 4-304.6 Multi-communication module. . . . . . . . 4-36

5. Commissioning the ABG . . . . . . . . . . 5-15.1 Commissioning with display emulators 5-45.1.1 Instructions on the emulators . . . . . . . . 5-55.1.2 Installing the emulators. . . . . . . . . . . . . 5-65.1.3 Accessing and exiting an emulator . . . 5-85.1.4 Description of the emulators. . . . . . . . 5-105.2 Checking the display texts . . . . . . . . . 5-155.3 Practical tips . . . . . . . . . . . . . . . . . . . . 5-17

ABG-SF 3

IV 9708b

Page 6: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Appendix ASummary of software modules . . . . . . . . A-1Software modules for the SF3 . . . . . . . . . . . A-3Naming the MAK files (example) . . . . . . . . . A-4

Appendix BTechnical Appendix . . . . . . . . . . . . . . . . . . B-1Settings on the display and operating units B-3Connecting cable. . . . . . . . . . . . . . . . . . . . . . B-4Error messages. . . . . . . . . . . . . . . . . . . . . . . B-8Definitions of terms . . . . . . . . . . . . . . . . . . . B-15

ABG-SF 3

9708b V

Page 7: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Information on this manual

The following product-specific terms and abbrevi-ations are used in this manual:

Term/abbreviation Meaning

ABG Display and operating unit

FD Festo Display

DIAG Diagnostic interface of the SF 3(RS232)

Information on the display and operating unitscan be found packed with the relevant product.

ABG-SF 3

VI 9708b

Page 8: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Manuals on the SF 3 system Display andoperating units

Manual Programmablevalve terminal types 02...05 withSF 3 control block

No. 165480 (type 02)No. 165481 (type 03)

Festosoftware toolFST200 V3.2 or higher

No. 165 489

Display andoperation withthe SF 3

This manualNo. 377 744

Packed withproduct

Contents Special informationon installation,commissioning,programming anddiagnosis.

Information oninstallation ofthe softwareand onprogrammingin STL andLDR.

Specialinformation on creating thedisplay textsand oncreating thenecessary sorftware modules.

Information oninstallation,special settingsand diagnosison the relevantdisplay andoperating unit.

Fig. 0/1: Manuals on the SF 3 system including display and operation

24VD C FUSE2A

D IAG

BUS

POWER R U N

ERROR

200

ABG-SF 3

9708b VII

Page 9: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Guideline

This section is intended as a guideline. It showsa sensible procedure for incorporating displayand operating units into the SF 3.

Procedure

1 Determine the type and functioning of the ABG Chapter 1.1

2 Select the MAK files for creating the necessary software modules

Chapter 1.2

3 Create a display file with the texts which are to be shown Chapter 2.2

4 Only for texts in ABG: load the display texts into the ABG Chapter 2.5

5 Create the software modules: in the display editor - function Generate CMP/CFM forstandard mode, with the function Include module

Chapter 3.2

Chapter 3.3

6 Incorporate the software module into your user program Chapter 4

7 Test the displays or the software modules– with a display emulator (text in SF3),– with the function Display test (text in ABG)

Chapter 5.1 Chapter 5.2

ABG-SF 3

VIII 9708b

Page 10: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Register 1

Summary

"Display and operation with the SF 3"

ABG-SF 3 1. Summary display/operation

9708b 1-1

Page 11: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents1.1 Display and operating units on

the SF 3 control block . . . . . . . . . . . . 1-31.1.1 Division of ABG types. . . . . . . . . . . . . . 1-6

Display and operating units and theirfunction . . . . . . . . . . . . . . . . . . . . . . . . . 1-7

1.1.2 Operating principle of the software modules . . . . . . . . . . . . . . . . . . . . . . . . . 1-8

1.1.3 Text output procedure(operating modes) . . . . . . . . . . . . . . . . 1-10Selecting the operating mode. . . . . . . 1-11

1.2 Summary of software modules for the SF 3 control block . . . . . . . . . . . 1-12

1.2.1 Selecting the software modules . . . . . 1-121.2.2 MAK files for further displays and

other controllers. . . . . . . . . . . . . . . . . . 1-141.2.3 Software, devices and accessories

required . . . . . . . . . . . . . . . . . . . . . . . . 1-15

1.3 Differences between SF 3 and SB202 . . . . . . . . . . . . . . . . . . . . . . . . . 1-16

ABG-SF 3 1. Summary display/operation

1-2 9708b

Page 12: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

This chapter summarizes the possibilities ofdisplay and operation with the SF 3 controlblock.

1.1 Display and operating units on the SF 3 control block

The diagnostic interface of the SF 3 control blockcan be used either for programming or diagnosiswith a PC or for communication with a displayand operating unit (ABG).

The SF 3 control block can be operated in auser-friendly manner with the aid of a displayand operating unit (ABG), as most ABGs have atext display and keyboard. Simple conventionaloperation by means of switches and keys, aswell as the display of operating states by meansof LEDs, is also possible via the digital in-puts/outputs.

Start/stopcontrol panel

ProgrammingPC (IBM compatible)

with FST200 V3.2programming software

Operating

ABGxcontrol

Fig. 1/1: System structure "Display andoperation" with SF 3

ABG-SF 3 1. Summary display/operation

9708b 1-3

Page 13: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Depending on the display and operating unitused, the following applications are possible:

– displaying user-defined texts (e.g. outputtingmessages);

– displaying values (e.g. number of items,pages, etc.);

– entering parameters (value entry, machinediagnosis, sequence control).

The display and operating units are controlled bymeans of special program or function modules(CMP/CFM). These software modules providethe functions for communication between SF 3and certain display and operating units. Thesesoftware modules are therefore also referred toas drivers.

The \LIB directory of the FST software packagecontains various MAK files ("Make" files) for thispurpose. Depending on the ABG type, you can"make" (create) the appropriate software mo-dules.

PLCprogram

Display driver

Text output

Keyboard

Key interrogation/keyboard buffer

Softwaremodule

Any displayor ASCIIterminal

Fig.1/2: Software modules for display and operating

ABG-SF 3 1. Summary display/operation

1-4 9708b

Page 14: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The FST software package contains the follow-ing programs and functions for user-friendly textwriting, programming and commissioning of thedisplays:

– display editor for creating the display textswhich are to be shown later on the ABG;

– functions for creating out of MAK files theappropriate software modules for a display.Depending on the display: a) in the menu Utilities via Include moduleb) in the display editor via Generate CMP/CFM

for standard mode.

– Emulators for Festo ABGs, in order toemulate the ABGs during commissioning(with PC connected).

– A program for testing the displays and withwhich you can access texts stored in thedisplay.With the display editor you can also outputtexts from the PC on the display.

ABG-SF 3 1. Summary display/operation

9708b 1-5

Page 15: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.1.1 Division of ABG types

Various display and operating units can be usedwith the SF 3 control block. The followingfunctions are possible:

– Display text- output texts which are stored in the SF 3

(internal texts)- output texts which are stored in the SF 3

(external texts)- output variables (values) from a user

program currently running

– Keyboard scanning (direct key monitoring; theappropriate flag must be scanned cyclicallyby program)

– Keyboard buffer (enter up to five charactersin an intermediate memory/register, indirectscanning)

– Switch on/off key LEDs

Displays enable the most important alphanumeri-cal characters to be represented. Depending onthe ABG, 1 to 4 lines with 16 to 40 characterscan be represented. The display texts can bestored both in the SF 3 ("standard mode") and inthe ABG.

Entries on the keyboard are scanned by pro-grammed cyclic monitoring of the keys. Severaldispay and operating units have a keyboardbuffer which intermediately stores the valuesentered.

As a further possibility, additional LEDs on theindividual keys can be switched on (e.g. with theABG2).

ABG-SF 3 1. Summary display/operation

1-6 9708b

Page 16: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Display and operating units and theirfunction

ABG type Function Characteristics

E.ABG-1(E.ABG-FPC, -LED, -EL, -VF)

D/S/B LCD display, 2 lines with 16 characters, function keys, 10-keyboard (memoryextension possible with E.ABG-MEM)

E.ABG-2 D/S/L LED display, 2 lines with 40 characters, function keys with integrated LEDs

E.ABG-80-LED D/S/B LED display, 4 lines with 20 characters, function keys, 10-keyboard

FD-1/40-PFD-1/40-S

D LED display, 1 line with 40 characters

E.FD-2/40-PE.FD-2/40-S

D LED display, 2 lines with 40 characters

Any display or ASCII terminal

D/S/B Depending on display: output texts, variables, control characters, access texts, enter any ASCII character andvalue input for variables. Communication ismade via RS232 interface

PCS operating panel D/S/B

Function: D = display S = key scanning B = keyboard buffer L = key LED

(As at June 1997. We reserve the right to make alterations).

ABG-SF 3 1. Summary display/operation

9708b 1-7

Page 17: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.1.2 Operating principle of the software modules

The software modules for the currently availabledisplay and operating units are accessed cycli-cally from a program. Communication betweenthe calling program and the software module ismade by means of operands, e.g. registers, flagsand special function units (FU).

Module access with transfer parameters

OperandsModule

Any display orASCII terminal

PLCprogram Return jump with

return parameters

Fig. 1/3: Operating principle of display driver and keyboard driver

ABG-SF 3 1. Summary display/operation

1-8 9708b

Page 18: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The ABGs are connected to the diagnosticinterface of the SF 3 (RS232). The softwaremodule controls communication to the display viathis RS232 interface.

A distinction can be made between two types ofsoftware modules according to their function:

– Keyboard modules or entry driversSoftware modules used for scanning/monitor-ing the key functions of display and operatingunits.

– Text modules or display driversSoftware modules used for controlling the textoutput functions of display and operatingunits.

ABG-SF 3 1. Summary display/operation

9708b 1-9

Page 19: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.1.3 Text output procedure (operating modes)

The following posssibilities exist for showingtexts on the display of the ABG, depending onthe display type:

– Texts in the SF 3 control block (internal texts)This possibility is referred to as standardmode and is generally suitable for all types ofdisplay with serial interface. The texts can bemodified easily and quickly, but they occupymemory space in the SF 3 and requirecapacity for calculating (thereby reducing theperformance of the system.

– Texts in the display (external texts) - RAM mode – for displays with

integrated RAM memory- EPROM mode – for displays with

EPROM memory - Field bus mode – for displays with

RAM or EPROM memory and field bus interface.

This possibility reduces the amount of dataexchanged between the SF 3 and the dis-play. The texts do not occupy any memoryspace in the SF 3 and thereby reduce theprogram cycle time. The texts cannot, how-ever, be modified so easily.

ABG-SF 3 1. Summary display/operation

1-10 9708b

Page 20: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Selecting the operating mode

Depending on the commissioning phase, youmust decide whether the text is to be stored inthe SF 3 control block or in the display. Thefollowing considerations should help you inmaking this decision:

• Which operating mode makes the displaypossible?

• Is the text to be stored irrespective of batterycapacity and interference?

• Should it be possible to quickly revise thetext?

• Is there sufficient storage space in the SF 3control block for the texts?

• Will the cycle time for program processing beunreasonably extended due to the transfer oftexts from the PLC to the display?

During the development phase, it is a good ideato store display texts in the SF 3 (standardmode, texts in the display). It then takes lesstime to modify texts.

ABG-SF 3 1. Summary display/operation

9708b 1-11

Page 21: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.2 Summary of software modules for the SF 3 control block

The following MAK files for creating softwaremodules are an integral part of the FST softwarepackage and are installed in the library directory(\LIB). You can incorporate software modulesfrom the directory \LIB into the current projectwith the function Include module.

1.2.1 Selecting the software modules

Proceed as follows in order to select the correctsoftware module:

1. Look for your dispay in the following table andfor the desired operating mode in the col-umns "Function" and "Brief description of theoperating mode."

2. Select one of the MAK files in the appropriateline. Files with the underline (_) are used forcreating a CMP, those with a circumflex (^)are used for creating a CFM.

3. In the key to the MAK file you will find outhow the software module is to be created.– with the display editor of the FST200,

generate function CMP/CFM for standard mode.

– with the FST software, function Includemodule

The further procedure and detailed informa-tion can be found in the following chapters:– Creating the software modules

⇒ Chapter 3– Description of the software modules and

access in the user program⇒ Chapter 4

ABG-SF 3 1. Summary display/operation

1-12 9708b

Page 22: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Assignment display – MAK file

Display Function Brief description ofoperating mode

Relevant MAKfiles

E.ABG-1 E.ABG-FPCE.ABG-LEDE.ABG-ELE.ABG-VF

Display Driver for any display,text in SF 3

3FD_XABG.MAK 3FD^XABG.MAK 1)

Display driver E.ABG-LED,E.ABG-80-LED, text in ABG

3FD_216S.MAK 3FD^216S.MAK 2)

Key scanningkeyboard buffer

Driver for keyboardE.ABG-LED, integer value

3_EABG.MAK 3^EABG.MAK 2)

E.ABG-2 Display Driver for any display,text in SF 3

3FD_XABG.MAK 3FD^XABG.MAK 1)

Key scannigand switchingon key LEDs

Driver for key scanning/LED control E.ABG-2

3_EABG2.MAK 3^EABG2.MAK 2)

E.FD-1/40SE.FD-1/40PE.FD-2/40SE.FD-2/40F

Display Driver for any display,text in SF 3

3FD_XABG.MAK 3FD^XABG.MAK 1)

Display driver FD-X40/S,text in ABG

3FD_240S.MAK 3FD^240S.MAK 2)

E.ABG-80-LED Display Driver for any display,text in SF 3

3FD_XABG.MAK 3FD^XABG.MAK 1)

Display driver E.ABG-LED,E.ABG-80-LED, text in ABG

3FD_216S.MAK 3FD^216S.MAK 2)

Key scanningkeyboard buffer

Driver for keyboardE.ABG-80-LED

3_ABG80.MAK 3^ABG80.MAK 2)

Any display/ASCII terminal

Display andentry

Driver for characterinput/output (multi-communication module)

3_ETMV5.MAK 3^ETMV5.MAK 2)

Data line(any display)

Display Driver for any display,text in SF 3

3FD_XABG.MAK 3FD^XABG.MAK 1)

PCSoperatingconsole

Display andentry

Driver for PCS operatingconsoles

3_PCS.MAK 3^PCS.MAK 2)

1) Create a CMP/CFM via the display editor,with the function "Generate CMP (or CFM) for standard mode" (section 3.2)

2) Create a CMP/CFM with thefunction "Include module"(section 3.3)

As at July 1997, liable to alteration

ABG-SF 3 1. Summary display/operation

9708b 1-13

Page 23: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

When the FST200 as from version 3.2 – revision8 (as at 8/97) is installed, these MAK files willautomatically be installed on your PC (directory\LIB). In order to display the version of your FSTsoftware, press key F10 in the main menu. Theversion will then be shown in the status line (e.g.3.2 - 0008).

The MAK files must be incorporated as softwaremodules into the current project with GenerateCMP/CFM for standard mode or with Includemodule.

1.2.2 MAK files for further displays and other controllers

Further displays or other controllers are alsosupported by MAK files. However, these are notan integral part of the FST200 software package.The display drivers supplied are imported auto-matically by the installation program.

Display drivers which are not an integral part ofthe FST200 software package must be importedinto the directory \LIB (library directory) with theaid of the FST software. Please refer here to therelevant documentation for the display driver.

ABG-SF 3 1. Summary display/operation

1-14 9708b

Page 24: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.2.3 Software, devices and accessories required

You will require the following for commissioningan ABG:

– SF 3 control block as from software versionV1.2 and valve terminal hardware of yourchoice. (Software version V 1.5 is required if youwish to use the module for characterinput/output via the diagnostic interface(3_ETMV5.MAK/3^ETMV5.MAK). You candisplay the version number with the functionOnline mode).

– Programming software FST200 with manual.

– Display and operating unit with suitableconnecting cable (see Appendix B).

ABG-SF 3 1. Summary display/operation

9708b 1-15

Page 25: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1.3 Differences between SF 3 and SB202

All program modules which are available for theSB202 are also available for the SF 3. In thecase of the SF 3, function modules (CFM) canalso be used for controlling display and operatingunits. From the designation of the MAK file, youcan tell for which controller and module type thefile is intended.

Example:

2FD_240S.MAK3FD^240S.MAK

Meaning of the designation

23

Controller type (1=101, 2=202c/SB202, 3=SF 3, 4=404, 5=405)

FD Depends on display, here:Festo Display (FD)

_^

_ File creates a program module (CMP)^ File creates a function module (CFM)

2 Depends on display, here:Lines of the display: 1 = RAM/EPROM mode: for single-line display FD-1/40-S 2 = RAM/EPROM mode: for two-line display FD-2/40-S X = Standard mode: for FD-1/40-S u. FD-2/40-S

40 Depends on display, here:No. of columns in display (40=40 columns)

S Depends on display, here:transmission type (S=serial; P=parallel; F=field bus)

.MAK File out of which a software module can be created

In some cases, the dialogue fields for creatingthe modules for the SF 3 differ slightly fromthose for the SB202.

ABG-SF 3 1. Summary display/operation

1-16 9708b

Page 26: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Register 2

FST200 display editor

ABG-SF 3 2. FST200 display editor

9708b 2-1

Page 27: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents2.1 Accessing the display editor. . . . . . . 2-5

2.2 Creating a display file . . . . . . . . . . . . 2-72.2.1 The screen layout of the editor . . . . . 2-11

Basic principles . . . . . . . . . . . . . . . . . . 2-122.2.2 Editing mode . . . . . . . . . . . . . . . . . . . . 2-142.2.3 Text mode . . . . . . . . . . . . . . . . . . . . . . 2-15

Entering and deleting text. . . . . . . . . . 2-16Entering and overwriting text characters . . . . . . . . . . . . . . . . . . . . . . 2-16Blank character (Tab character). . . . . 2-17Entering a blank character . . . . . . . . . 2-18

2.2.4 Control character mode . . . . . . . . . . . 2-19Entering control characters. . . . . . . . . 2-19Modifying the control sequence . . . . . 2-22

2.2.5 Additional functions of the editor . . . . 2-23Search for text . . . . . . . . . . . . . . . . . . 2-23Copy display text . . . . . . . . . . . . . . . . 2-24Inserting and deleting display text(text number). . . . . . . . . . . . . . . . . . . . 2-25

2.2.6 Quit editor . . . . . . . . . . . . . . . . . . . . . . 2-26Save and quit editor . . . . . . . . . . . . . . 2-26Intermediate saving . . . . . . . . . . . . . . . 2-26Abort editing . . . . . . . . . . . . . . . . . . . . 2-27

2.3 Delete display file . . . . . . . . . . . . . . . 2-28

2.4 Print display file . . . . . . . . . . . . . . . . 2-29Output format . . . . . . . . . . . . . . . . . . . 2-30

ABG-SF 3 2. FST200 display editor

2-2 9708b

Page 28: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.5 Loading the display RAM via theRS232 (V24) interface . . . . . . . . . . . . 2-31Loading procedure . . . . . . . . . . . . . . . 2-33

2.6 Programming EPROMs. . . . . . . . . . . 2-33General information. . . . . . . . . . . . . . . 2-33Programming EPROMs – procedure 1 . . . . . . . . . . . . . . . . . . . 2-35Selecting the EPROM programmer . . 2-37Other EPROM programmers . . . . . . . 2-38Intellec-hex dump . . . . . . . . . . . . . . . . 2-38Intellec-hex dump to file . . . . . . . . . . . 2-39Selecting the interface configuration . 2-39Selecting the EPROM type . . . . . . . . 2-40Programming EPROMs. . . . . . . . . . . . 2-41Programming EPROMs – procedure 2 . . . . . . . . . . . . . . . . . . . 2-42

ABG-SF 3 2. FST200 display editor

9708b 2-3

Page 29: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The FST display editor supports primarily theuse of Festo text displays. You can also use thetext displays of other manufacturers, providingthese are equipped with a serial interface.

The display editor is accessed from the FSTsoftware. The functions available depend on thetype of display.

Display Part no. Functions available

E.ABG-1 8345 (E.ABG-EL, series no. > 1999)8345 (E.ABG-LED, series no. > 4100)8346 (E.ABG-VF)

1,2,3,4,5

E.ABG-80-LED 271357 1, 2, 3, 4, 5

E.FD-1/40P 8208 1, 2, 5

E.FD-1/40S 8206 1, 2, 3

E.FD-2/40S 8207 1, 2, 3, 4, 5

E.FD-2/40F 8172 1, 2, 3, 4, 5

E.ABG-2 268994 1, 2, 3

Data line As desired 1, 2, 3

1 = Create a display file with text data and control data.2 = Print the display files created.3 = Create a software module (CMP) or a function module (CFM), in order to

transfer texts from the SF 3 control block into the text display when a program is running.

4 = Load a display file into the RAM memory of the display via the RS232(V24) interface.

5 = Transfer/program a display file into the EPROM of the display.

ABG-SF 3 2. FST200 display editor

2-4 9708b

Page 30: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.1 Accessing the display editor

A display file is part of a project. You mustalways select the project before the displayeditor is started.

You can only start the display editor from theFST software. To do this activate the functionConfiguration in the Utilities. Then enter theappropriate specifications in the mask Programcall (F4) (see following diagram).

These entries are made by the installationprogram when the FST software is installed.

Fig. 2/1: Specifications for program access

F4

ABG-SF 3 2. FST200 display editor

9708b 2-5

Page 31: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The installation program enters all the necessaryinformation. By means of the parameters (#1 #2#3 #4), the display editor recognizes the com-puter configuration, the current project path andthe controller type used (see FST manualchapter 3.10.1).

The installation program enters Display editor asthe program name. If you activate the functionProgram execution under Utilities in the FSTsoftware, this name will appear in the selectionwindow (see diagram below).

You can start the program by activating thisentry. You can request a situation-related helptext with key F9, exactly as in the FST software.

Fig. 2/2: Accessing the program

ABG-SF 3 2. FST200 display editor

2-6 9708b

Page 32: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2 Creating a display file

The display editor supports further functions inaddition to the editing of texts. When the displayeditor is accessed, you will see the choice offunctions (see following diagram). You can:

– edit new or existing display files,

– delete existing display files,

– print display files,

– load display files into an EPROM or into theRAM memory of the display,

– create a program module or function modulefor standard mode,

– exit the display editor.

In order to create a display file, activate thefunction Edit file.

Fig. 2/3: Function selection menu in the displayeditor

ABG-SF 3 2. FST200 display editor

9708b 2-7

Page 33: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Your next step depends on whether the selectedproject:

– does not yet contain a display file or,

– already contains a display file.

Project does not contain any display files

If there is no file for the active project, only thefunction New file name will appear in the fileselection menu.

The function New file name enables you tocreate a new file in the current project. When thefunction is activated, the following window ap-pears.

Fig. 2/4: File selection menu

Fig. 2/5: Enter file name

ABG-SF 3 2. FST200 display editor

2-8 9708b

Page 34: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Enter here a file name with maximum eightcharacters. This may consist of letters, figures orthe underline ( _ ). When the entry is confirmed,the display type selection will appear.

By selecting the display type, you communicateto the program whether the display consists of asingle line or of several lines and the controlcharacters which it can process. You can thenedit the file (see chapter 2.2.1).

Fig. 2/6: Select display type

ABG-SF 3 2. FST200 display editor

9708b 2-9

Page 35: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Project already contains display files

If the project already contains display files, thefollowing file selection menu will appear:

Next to the file names you will see the displaytypes for which the files have been created. Youcan now select the file which you wish to edit.With the function New file name, you can addanother file to the project.

Fig. 2/7: Select file

ABG-SF 3 2. FST200 display editor

2-10 9708b

Page 36: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.1 The screen layout of the editor

When a file has been selected or created, theeditor is activated. The editing level depends onthe type of display selected. The name of thecurrent display file can be seen in the header.The diagram below shows the editing level for atwo-line display.

Fig. 2/8: Editing level of a two-line display

ABG-SF 3 2. FST200 display editor

9708b 2-11

Page 37: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

There are four windows:

– Control sequence window (top left): Showsthe control characters entered for the currentcursor position of the text window. All thesecontrol characters together are referred to asthe control sequence.

– Control character menu (top right): Containsthe control characters permitted for this typeof display together with an explanatory text.

– Text window: Enter here the text which is toappear later on the display.

– Valid set of characters (below right): Showsthe set of characters valid for the display.

When you are working with the keyboard and themouse, the same possibilities are available aswith the FST software.

Basic principles

A display file consists of text and controlcharacters. You normally enter the text charac-ters in the position in the text window where theyare to appear later on the display. The controlcharacters of some displays enable you torepresent texts in different ways (e.g. by under-lining individual characters) or similar. You cantherefore assign several control characters toeach position in the text. The maximum numberof control characters depends on the memory ofthe display and on the length of the controlsequence window. All the control characters ofone position are referred to as the controlsequence (see following diagram).

ABG-SF 3 2. FST200 display editor

2-12 9708b

Page 38: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The control sequence window shows the controlsequence belonging to the current text charac-ters. If the cursor is placed in the position E ofTEXT, the control character ESC N will be seenin the sequence window.

How to transfer texts

1. Each position, beginning with the first (left-hand) position in the first row, is processedone after the other.

2. If a position contains a control sequence, thiswill be transferred before the text character.

3. The text character is transferred after the con-trol sequence (if this exists).

4. The next position is processed. This repeatsitself until all the text positions have been pro-cessed.

Fig. 2/9: Text characters and control characters

ABG-SF 3 2. FST200 display editor

9708b 2-13

Page 39: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.2 Editing mode

When the editor is accessed, the text modebecomes active. With function key F1 or byclicking the appropriate window, you can switchbetween the editing modes for:

– text or

– control characters

Depending on the mode, you can insert ormodify text or control characters in the file. Thetable below explains this briefly. More detaileddescriptions can be found in subsequent sections.

Text character Control character

Before entering the character Select the text number for which youwish to enter text.

Before entering the character Position the cursor under the textcharacter for which you wish to enter acontrol character.

Activate the function Enter text (F1) or activate the text window with the mouse if it is not already activated.

Activate the function Control character (F1) or activate thesequence window or the controlcharacter window with the mouse.

Entry is made Via the keyboard.

Entry is made By selecting the control character in thecontrol character menu with the mouse(click twice) or with the Cursor andEnter keys.

You can see the character entered In the text window.

You can see the character enteredIn the sequence window.

Additional No special features.

Additional The relevant text character is marked incolour. In monochrome representationthe display foreground of the characterchanges from white to black.

F1

ABG-SF 3 2. FST200 display editor

2-14 9708b

Page 40: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.3 Text mode

You can activate the text mode with the functionEnter text (F1) or by clicking the text windowwith the mouse. The editing functions describedin the following sections can be used in thismode.

– Entering text characters.

– Inserting and deleting text characters. Whena text character is deleted, the assignedcontrol sequence is also deleted.

– Entering blank characters.

– Additional functions.

The header of an activated window is shown inenhanced form.

The header of the text window contains informa-tion on the display type selected and on thecursor position in the window.

Fig. 2/10: Header of the text window

F1

ABG-SF 3 2. FST200 display editor

9708b 2-15

Page 41: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Entering and deleting text

Use the cursor keys or the mouse to select thetext number for which you wish to enter ormodify text. You can then edit the text in theusual manner. You can delete a character withthe DEL key (Delete). The relevant controlsequence is then also deleted (see section2.2.4).

Entering and overwriting text characters

With the INS key (= Insert) you can switch fromthe insert mode to the overwrite mode and viceversa. You can tell which mode is active fromthe way in which the cursor is represented. Inthe insert mode it is represented as a rectangle;in the overwrite mode as a line. In insert modenot only the text characters but also the relevantcontrol characters are shifted to the right.

Text characters and control characters pushedout to the right will be lost.

In the overwrite mode you can overwrite textcharacters. Control characters, however, will notbe modified or deleted.

DEL

INS

ABG-SF 3 2. FST200 display editor

2-16 9708b

Page 42: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Blank character (Tab character)

The blank character or Tab character is a specialtext character. When a new text is accessed inthe display, the positions at which a blankcharacter is transferred are not modified. The oldtext remains unmodified at these positions.

You can place texts one on top of the other,thereby forming a text out of several textnumbers (see following diagram).

The blank character cannot be used with alldisplay types.

Fig. 2/11: Superimposing texts

ABG-SF 3 2. FST200 display editor

9708b 2-17

Page 43: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The diagram shows that some characters of thefirst text may then be overwritten (here letter Aby letter B).

If the display is deleted by a control characterand a text is then transferred, the blankcharacter will be represented in the same way asan empty space. However, you should use herethe blank character rather than the empty spacein order to save memory space. When a displayfile is created, all the display texts will be writtenwith the blank character (see Fig. 2.8).

Entering a blank character

If you wish to overwrite a text character with ablank/Tab character, activate function F7 Tabulatorcharacter. Control characters will not be modifiedhere.

F7

ABG-SF 3 2. FST200 display editor

2-18 9708b

Page 44: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.4 Control character mode

You can enter control characters in this mode.Their scope and performance depend on thedisplay used. The following editing functions canbe used in this mode:

– Enter or delete a control character or controlsequence (several control characters) for atext character.

– Modify a control sequence by inserting ordeleting control characters.

Control sequences can also be deleted in textmode.

Entering control characters

First place the cursor in text mode at the positionin the text file for which you wish to enter ormodify control characters. Now activate the function Controlcharacter (e.g. with F1). Then select the controlcharacter in the control character window.

Depending on the type of display, this windowshows at first only a few of the control characterspermitted for this display. By paging or scrollingwithin this window you can see the other controlcharacters.

F1

ABG-SF 3 2. FST200 display editor

9708b 2-19

Page 45: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

When you have selected a control character, itwill be shown in the control sequence window. Inthe case of control characters which require anadditional numerical specification, an entry fieldopens up in the sequence window (see followingdiagram).

The permitted value range for the entries can beseen in the control character window. You canconfirm your entry with the Enter key.

When a control character is entered, the relevanttext character, that is the text character at thecurrent cursor position, will be marked in colour.The way in which this happens depends on thetype of monitor used, as shown in the followingtable.

Fig. 2/12: Entry field in the sequence window

ABG-SF 3 2. FST200 display editor

2-20 9708b

Page 46: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Monitor type Monochrome Colour

Representation of text characters for which controlcharacters have been entered.

black ongrey

whiteon lightblue

Representation of text characters for which there areno control characters.

intensivewhite ongrey

blackon grey

If you delete a text character marked in colour,the relevant control characters will also bedeleted.

You can enter several control characters foreach text character or for each cursor position.The amount is limited by the size of thesequence window and depends, therefore, onthe length of the individual control characters.The control characters are separated from eachother by a slash (/).

The cursor position has a bright background. Ifthe sequence window is filled with controlcharacters, you cannot enter any control charac-ters for the current text characters.

Fig. 2/13: Control sequence

ABG-SF 3 2. FST200 display editor

9708b 2-21

Page 47: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Modifying the control sequence

Position the cursor in text mode at the textcharacter for which you wish to modify thecontrol sequence. The control sequence canthen be seen in the sequence window (see Fig.2.11).

Then activate the function Control character. Youcan now modify the control seqquence with thekeyboard or with the mouse, as shown in thefollowing table.

Delete/insert With the keyboard With the mouse

Delete a controlcharacter

Mark the relevant controlcharacter in the sequencewindow with the cursorkeys. Now press the DELkey. With the Backspacekey you can deletecharacters in front of thecurrent cursor position.

Position the mouse pointeron the bar (/) to the right ofthe control character whichyou wish to delete andpress the left-hand mousekey.

Enter a controlcharacter in frontof the current cursor position

Mark the control characterin the sequence window infront of which you wish to insert. Then select the character from the controlcharacter menu and pressthe Enter key.

Position the mouse cursorat the control character infront of which you wish to insert and press the left-hand mouse key. Move themouse cursor in the controlcharacter menu to the character which you wish toinsert. Press the left-handmouse key twice.

ABG-SF 3 2. FST200 display editor

2-22 9708b

Page 48: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.5 Additional functions of the editor

In the text mode you can use additional functionswhich simplify the editing of a file. Thesefunctions always refer to an individual displaytext (the text of a text number). These functionsare:

– Insert display text (F5);

– Delete display text (F4);

– Copy display text (F3);

– Search for display text (F6).

Please observe here the function keys in Fig.2.12.

Search for text

This function simplifies the search for the displaytext. Instead of searching for a text by paging orscrolling, you can activate this function. Thefollowing window will open. Enter the desired textnumber in this window.

When the entry is confirmed, the desired textappears at the top of the text window.

Fig. 2/14: Search for text

F5

F4

F3

F6

ABG-SF 3 2. FST200 display editor

9708b 2-23

Page 49: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Copy display text

The display text, which you wish to copy, mustfirst be marked. Position the cursor on the textwhich you wish to copy and activate the functionMark text. By clicking the text number you canalso mark the display text with the mouse. Thetext number is then shown enhanced.

Move the cursor to the position to which the textis to be copied. Then activate the function Copytext.

Fig. 2/15: Mark text

ABG-SF 3 2. FST200 display editor

2-24 9708b

Page 50: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

If text or control characters already exist forthese text numbers, the following question willappear in a window:

Text number N already exists. Overwrite? (Y/N)

Yes The copy process is started. The markedtext is copied into the text number specified with N.

No The copy process is aborted.

Inserting and deleting display text(text number)

Position the cursor on the text which you wish todelete or in front of which you wish to insert adisplay text (text number). Now activate thefunction Delete text (F4) or Insert text (F5).

As from the current cursor position, the textnumbers are increased or reduced by the value1, depending on whether the text is to be deletedor inserted.

F4

F5

ABG-SF 3 2. FST200 display editor

9708b 2-25

Page 51: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.2.6 Quit editor

You can exit the editor with the function End.When the function is activated, the window withthe file commands appears.

Save and quit editor

The display file is saved and the editor is exited.The function selection of the display editor thenappears again on the screen.

Intermediate saving

The display file is then saved. You can then editfurther at the old position. This function preventsany loss of data (e.g. as a result of powerfailure). In such cases, the last saved status canbe reloaded and processed further.

Fig. 2/16: File commands

F8

ABG-SF 3 2. FST200 display editor

2-26 9708b

Page 52: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

If you modify a file and then save it again, thedisplay editor will suffix the new version with thefile extension name .ANZ. The old version will besaved with the extension name .BAK.

Abort editing

With this function you can access the functionselection menu without your display file beingsaved. If you have activated this function, thefollowing question will appear in a further windowfor security reasons:

Are you sure? (Y/N)

Yes The modifications entered since the lastbackup will be rejected and the programwill return to the function selection.

No You return to the editor.

ABG-SF 3 2. FST200 display editor

9708b 2-27

Page 53: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.3 Delete display file

A display file is part of a project. Make sure thatwithin the FST software you have activated theproject from which you wish to process displayfiles.

In order to delete a display file, activate thefunction Delete file in the function selection menuof the display editor. You will then see thedisplay files of the current project in the fileselection menu as follows:

Select here the file which you wish to delete.When the selection is confirmed, the followingquestion appears in a window for securityreasons:

Are you sure? (Y/N)

Yes The file selected and the backup copymarked with the extension *.BAK are deleted.

No You return to the function selection menu.

Fig. 2/17: Delete file

ABG-SF 3 2. FST200 display editor

2-28 9708b

Page 54: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.4 Print display file

The function Print display text file enables you toprint out a display file of the active project on theprinter.

Display files cannot be printed with the functionPrint project.

Access is made here to the settings in the FSTsoftware which concern the configuration of theprinter. The project page header, which iscreated with the FST software, appears on everyprinted page.

Make sure that:

– the printer is switched on and is correctlyconnected to your computer;

– the settings for the printer made in the FSTsoftware correspond to the actual configura-tion (see also FST manual).

Fig. 2/18: Print display file

ABG-SF 3 2. FST200 display editor

9708b 2-29

Page 55: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

In order to print, activate the entry Print displaytext file in the function selection menu. You willthen see the file selection menu again. Nowselect the file which you wish to print out. Theprinting process will then be started. When theprinting process is finished, you will return to thefunction selection menu.

Output format

The text numbers of a display file are printed inascending order. You will see the text in the formof an image of the text display. The relevantcontrol sequences with specifications of line/col-umn coordinates are shown below the textnumbers (see diagram below).

Fig. 2/19: Example of printed image

ABG-SF 3 2. FST200 display editor

2-30 9708b

Page 56: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

2.5 Loading the display RAM via the RS232 (V24) interface

In order to load a display file into the RAMmemory of the display, you should make thefollowing preparations:

– Connect the PC and the display with asuitable cable. Further instructions on thechoice of cable can be found in Chapter 1and Appendix B.

– Check that the communication settings of theFST software and of the display correspond.

– Some displays require appropriate switch orjumper settings for loading the texts. (Seehardware descriptions for the displays andAppendix B).

– For saving the display texts (external texts),some displays require a memory extensionmodule (e.g. E.ABG-1).

Activate the function Load display RAM (V24) inthe function selection. You then come to the filemenu in which you can select the file you wishto load. The interface selection then follows (seediagram below).

ABG-SF 3 2. FST200 display editor

9708b 2-31

Page 57: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

By activating the appropriate entries, you can setone after the other the address of both theinterface and of the configuration which you areusing. The interface configurations which youhave selected are then shown on the screen(current interface configurations). When youactivate the function Load text, loading starts.

The interface configuration selected here must correspond with the setting on the text display.Please make sure that the text display is in theprogramming mode (see manual for text display).

Fig. 2/20: Interface selection

ABG-SF 3 2. FST200 display editor

2-32 9708b

Page 58: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Loading procedure

Various status messages are shown during theloading procedure. With the E.ABG-1 (EL, LED,VF) and E.ABG-80-EL additional messages alsoappear on the display.

2.6 Programming EPROMs

The display editor supports the programming ofEPROMS for saving display texts.

General information

The programming of EPROMs is a two-stageprocess. First of all, the display files areconverted into an Intel-hex format file. Thecontents of this file are saved in the EPROMwith the aid of an EPROM programmer. Thisprocedure is also known as "programming."

Programming requires special software which issuited to the programmer. Some commonmodels are supported directly by the displayeditor.

In addition, almost all EPROM programmerssupport files which have been created in Intel-hex format. These files can be created with thedisplay editor and loaded into the EPROM withthe aid of the software of the EPROM pro-grammer.

ABG-SF 3 2. FST200 display editor

9708b 2-33

Page 59: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

There are two procedures for programming theEPROMs for displays:

– Procedure 1 (for all ABGs with EPROM)Programming the EPROMs for all displayswhich support this procedure (including 8kEPROMs for displays E.ABG-EL, -LED, -VF).These EPROMs are programmed with thefunction Load EPROM in the main menu ofthe display editor (FST202C: also possible viathe menu Utilities).

– Procedure 2 (for E.ABG-1)Programming so-called OEM mode EPROMsfor the displays E.ABG-EL, -LED and -VF.The texts for the display and the operatingsystem of the display are combined in a 32kEPROM.

This combined file is generated with thefunction EPROM utility ("ABG-EL/VF OEMEPROM Utility Program" as from version 7/97– V.8 – integrated in the display editor). Startthe program in the display editor of theFST200 (key F3 EPROM utility). You canaccess further help texts with key F9.F9

F3

ABG-SF 3 2. FST200 display editor

2-34 9708b

Page 60: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Programming EPROMs – procedure 1

If you activate the function Load EPROM in thedisplay editor or (only FST202C) under Utilities,the file selection will appear on the screen.Select here the file which you wish to save in theEPROM. When the selection is made, the file willbe converted into a data format which thedisplay can understand.

You can follow the conversion process through awindow in which the converted text numbers arecontinuously shown.

When the conversion process is finished, you willsee the following on the screen:

Fig. 2/21: Following the conversion process

ABG-SF 3 2. FST200 display editor

9708b 2-35

Page 61: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The name of the active project and the currentinterface configuration is shown in the lower halfof the screen. With the aid of the functionsrepresented you can:

– specify the type of EPROM programmer (F1),

– configure the interface used on your com-puter (F2),

– select the EPROM type (F6),

– start the EPROM programmer (F4),

– return to the function selection (F8).

Fig. 2/22: Load EPROM user level

F1

F2

F6

F4

F8

ABG-SF 3 2. FST200 display editor

2-36 9708b

Page 62: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Selecting the EPROM programmer

When you activate function F1, the followingselection window appears:

The FST software supports the EPROM pro-grammers DATA I/O, PROM1000 and SE4943. Ifyou use one of these programmers, you will notneed any additional software nor will you need tomake any settings on the EPROM programmer.The appropriate unit will be selected when thisentry is activated.

However, please make sure that the specifiedinterface parameters correspond to the settingson the programmer.

Fig. 2/23: Selecting the programmer

ABG-SF 3 2. FST200 display editor

9708b 2-37

Page 63: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Other EPROM programmers

You can use any other EPROM programmer,providing it operates with the Intellec-hex format.The last two entries in the window Programmertype serve this purpose.

Please read the operating instructions for theEPROM programmer completely through.

Intellec-hex dump

Your display file will be converted into theIntellec-hex format and output directly via theinterface specified.

ABG-SF 3 2. FST200 display editor

2-38 9708b

Page 64: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Intellec-hex dump to file

If you activate this entry, your program will beconverted into the Intellec-hex format and into afile which you must name. Enter here a file namewhich gives information about the relevantdisplay file. You can then use the softwaresupplied with your EPROM programmer forprogramming the EPROMs and thereby accessthis file again. You can also enter a DOS devicename here (e.g. LPT1), in order to address theEPROM programmer via the parallel interface.

Selecting the interface configuration

If you activate function F2 Select Com-, you willsee on the screen a selection for determining theinterface and its parameters. By activating therelevant entries, you can set the addresses ofthe interface which you are using (COM1 orCOM2), followed by its configuration. The con-figuration which you select will then be shown onthe screen.

If your PC only has a serial interface, you mustfirst interrupt the connection to the controller andconnect the EPROM programmer to the sameinterface.

F2

ABG-SF 3 2. FST200 display editor

9708b 2-39

Page 65: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Selecting the EPROM type

Before starting to program the EPROM, youmust specify the EPROM type which you areusing. To do this, activate function F6 or F7. Inthe centre of the screen you will see a selectionwindow with the possible EPROM types (seefollowing diagram).

PLEASE NOTEThe interface setting of the PC must corre-spond to the setting on the EPROM pro-grammer.

By activating the appropriate entry, you canselect the desired EPROM type. A new entry ismade on the screen immediately under EPROMtype.

Fig. 2/24: Select EPROM type

F6

F7

ABG-SF 3 2. FST200 display editor

2-40 9708b

Page 66: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Programming EPROMs

When you have made the necessary basicsettings for EPROM programming, you can startprogramming the EPROM.

Your PC must be connected correctly to theEPROM programmer. To do this, you require aspecial cable. The diagram in Appendix B showswhich pins are to be connected.

You can start the programming or burningprocess with function F4.

The data bytes transferred are counted up in asmall window. You can interrupt this procedureat any time by pressing the ESC key.

If transmission faults occur, then either theconnection to the EPROM programmer is faultyor the entries in the basic setting for EPROMprogramming are not correct. You can requesthelp with function F9.

If you have used one of the supported EPROMprogrammers, you can insert the EPROM intothe display as soon as the programming proce-dure is completed.

F4

ESC

F9

ABG-SF 3 2. FST200 display editor

9708b 2-41

Page 67: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Programming EPROMs – procedure 2

The second procedure can only be used for thedisplays E.ABG-EL/-LED/-VF). These displayscontain their internal operating system on a 32kEPROM in socket U3 on the printed circuitboard. There is still sufficient memory space forthe texts in this EPROM. The texts for thedisplay and the operating system of the displayare stored together in this 32k EPROM.

If you have to provide a series with the sametexts, this variant has the advantage of beingmore rational and you can save the costs of apossible extension to the memory of the ABG.

On the other hand, creation and modification ofthe text files are less flexible. This procedure isnot, therefore, to be recommended, e.g. duringcommissioning.

CAUTIONMake sure that you insert a faultlessly createdEPROM (operating system) in the socket ofthe ABG.The operating system on the EPROM controlsthe microprocessor of the ABG. Faulty or un-suitable EPROMs can cause irreparable dam-age to the display.

ABG-SF 3 2. FST200 display editor

2-42 9708b

Page 68: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Proceed as follows:

1. Create all the display texts for your projectand save them.

2. Connect the ABG to the PC and make surethat:- you are using suitable cables and that- the interface parameters are set identically

on both sides.

3. Switch on the display.

4. Activate function F3 EPROM Utility in the dis-play editor. The following will appear on thescreen.

5. Set the appropriate interface parameters onyour PC with key F3.

You can access further help texts with F9.

Fig. 2/25: EPROM for ABG

F9

F3

F3

ABG-SF 3 2. FST200 display editor

9708b 2-43

Page 69: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

6. With F2 select the display file which you wishto save in the ABG.

Press key F1 to generate the file for theEPROM.The following process consists of the followingsteps:

– the display text is compiled (OBJ file);

– the operating system of the display is readand saved on the hard disc;

– these two files are combined and saved onthe hard disc.

Fig. 2/26: Selecting the display

F1

F2

ABG-SF 3 2. FST200 display editor

2-44 9708b

Page 70: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Whilst this is taking place, status messages areshown on the screen. If the process is success-fully concluded, an appropriate status messagewill appear in the status line.

The completion message contains the followinginformation:

– the DOS path in which the new file is stored,

– the file name of the new Intel-hex file (*.32k)

The EPROM for the ABG can now be pro-grammed with this file and inserted in theappropriate socket of the ABG. Please observehere the instructions in the ABG manual.

CAUTIONMake sure that you insert a faultlessly createdEPROM (operating system) in the socket ofthe ABG. The operating system on the EPROM controlsthe microprocessor of the ABG. Faulty or un-suitable EPROMs can cause irreparable dam-age to the display

ABG-SF 3 2. FST200 display editor

9708b 2-45

Page 71: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ABG-SF 3 2. FST200 display editor

2-46 9708b

Page 72: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Register 3

Creating the software modules

from the MAK files

ABG-SF 3 3. Creating the software modules

9708b 3-1

Page 73: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents3.1 General data for module creation . . 3-5

Edge detection . . . . . . . . . . . . . . . . . . . 3-6Sign detection . . . . . . . . . . . . . . . . . . . . 3-6Output delay . . . . . . . . . . . . . . . . . . . . . 3-7Operands (flags, registers, timers) . . . . 3-7

3.2 Creating the module with the display editor . . . . . . . . . . . . . . . . . . . . 3-8Creating CMP/CFM. . . . . . . . . . . . . . . . 3-9Parameter entry for creating a module . . . . . . . . . . . . . . . . . . . . . . . 3-12

3.3 Creating a module with the function Include module . . . . . . . . . 3-13Creating CMP/CFM. . . . . . . . . . . . . . . 3-15Parameter entry for creating a module . . . . . . . . . . . . . . . . . . . . . . . 3-19

ABG-SF 3 3. Creating the software modules

3-2 9708b

Page 74: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The creation of the software modules for linkingthe display and operating units depends on thetype of module. A distinction can be madebetween four different types according to theirmethod of operation.

– Display driver, texts stored in the SF 3

– Display driver, texts stored in the display

– Keys/keyboard driver (input driver)

– General driver for character input/output.

If you wish to enter and output texts, you mustusually create at least two software modules foryour ABG (one display driver and one keyboarddriver). The following table shows the function ofthe software module to be incorporated andwhere you can find further information on how tocreate the module.

ABG-SF 3 3. Creating the software modules

9708b 3-3

Page 75: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Type MAK file For display Creation

Display driver,texts in SF 3

3FD_XABG.MAK3FD^XABG.MAK

- E.ABG-1 (E.ABG-LED, E.ABG-EL, E.ABG-VF)

- E.ABG-2- E.FD-2/40S- E.ABG-80-LED- Data line (any display)

Create aCMP/CFM withthe displayeditor (section 3.2)

Display driver,texts in the display

3FD_216S.MAK3FD^216S.MAK

- E.ABG-1 (E.ABG-LED, E.ABG-EL, E.ABG-VF)

- E.ABG-80-LED

Create aCMP/CFM withthe function

3FD_240S.MAK 3FD^240S.MAK

- E.FD-2/40S "Includemodule" (section 3.3)Key/keyboard

driver3_EABG.MAK 3^EABG.MAK

- E.ABG-1 (E.ABG-LED, E.ABG-EL, E.ABG-VF)

Input driver 3_EABG2.MAK 3^EABG2.MAK

- E.ABG-2

3_ABG80.MAK 3^ABG80.MAK

- E.ABG-80-LED

General driverfor characterinput/output

3_ETMV5.MAK 3^ETMV5.MAK

- Any display /ASCII terminal

ABG-SF 3 3. Creating the software modules

3-4 9708b

Page 76: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

3.1 General data for module creation

When creating software modules, you mustmake some specifications concerning the con-figuration. These are mostly operands which areused by the module, but also settings forsequence control.

Whilst the module is being created, the specifi-cations are interrogated in a window (seefollowing example):

Create the necessary software modules:

• with the display editor (chapter 3.2) or

• via Include module (chapter 3.3).

Fig. 3/1: Parameter entry during module creation (example)

ABG-SF 3 3. Creating the software modules

9708b 3-5

Page 77: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The following specifications are typical and areinterrogated during the creation of most softwaremodules:

Edge detection

If the edge detection is activated, the softwaremodule will suppress the output of the sameconsecutive texts.

The edge detection has no effect if a variable isoutput together with the text.

The edge detection can be activated/deactivatedwith the following entries during module creation:

– 0 deactivate or

– 1 activate.

Sign detection

Sign detection is only of importance for theoutput of variables. It is determined via thestatus of the flag specified when the module iscreated. If its logical status is:

– 0, no sign is output. The variable value thenlies in the range 0 to 65535

– 1, we require one extra output column for thevariable output, because the sign is output aswell. The variable value then lies in the range-32768 to +32767.

ABG-SF 3 3. Creating the software modules

3-6 9708b

Page 78: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Output delay

Time delay which must elapse before eachcharacter is output. It ensures reliable operationof the display (recommendation for E.ABG-2:1 ms).

Operands (flags, registers, timers)

Further specifications, e.g. about the flags andtimers used by the module, depend on therelevant module. Information on this can befound in the description of the relevant module insections 3.2 und 3.3.

The specified operands are entered in theallocation list.

Check in the allocation list before creatingthe modules to see which operands oroperand ranges are still free.

PLEASE NOTENo error message is shown if the entries inthe allocation list cannot be made correctlywhen the modules are created. You musttherefore check the error list for the createdmodule (function Show error list).

ABG-SF 3 3. Creating the software modules

9708b 3-7

Page 79: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

3.2 Creating the module with the display editor

The standard mode (texts in the SF 3) isintended mainly for text displays without textmemory. but can also be used for some displayswith their own text memory. A software module(CMP/CFM) must be generated from a MAK fileand from the display file (text) for this operatingmode. The software module is loaded into theSF 3. When the module is accessed, the text istransferred to the display (see chapter 4).

Display editor

MAK file Display file

Texts and variables

Module Further progams

Module

Programs

TextsLoad

project

CMP/CFM generate for standard mode (configuration)

Texts

Fig. 3/2: Creating modules with the display editor

ABG-SF 3 3. Creating the software modules

3-8 9708b

Page 80: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

This procedure can be used for the followingMAK files:

– 3FD_XABG.MAK / 3FD^XABG.MAK

The MAK file must exist in the \LIB directory forthis purpose. The MAK files described in thismanual are automatically incorporated when theFST200 software is installed. Other MAK filesmust first be imported into the library directory\LIB with the function Import file.

Creating CMP/CFM

1. Activate the project for which you wish to cre-ate texts (function Select project).

2. Start the display editor of the FST200.

3. First decide whether you wish to create a pro-gram module or a function module(CMP/CFM) by using key F1 to select the ap-propriate entry in the starting menu of the dis-play editor. The function which is currently setwill be shown in the message line.

4. Then activate function CMP (or CFM) Gener-ate function CMP/CFM for standard mode.You will then see a file selection menu con-taining all the display files/texts of the activeproject.

F1

ABG-SF 3 3. Creating the software modules

9708b 3-9

Page 81: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5. Select the file which you wish to incorporatein the module. Further specifications are thenrequired.

6. Specify in which CPU and with which numberthe module is later to be accessed (alwaysCPU number 0 for the SF3 control block).

Select a non-assigned number between 0and 15 for program modules; a number be-tween 90 and 99 for function modules.

7. Then activate the function Translate (F1).

If a module with the specified module dataalready exists, the following question will appearon the screen:

Fig. 3/3: Entering module data

F1

ABG-SF 3 3. Creating the software modules

3-10 9708b

Page 82: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Module xx/ZE0 (or function xx/ZE0) alreadyexists in the project directory.

Overwrite? (Y/N)

Yes The module will be created further. The already existing module will be overwritten.

No Module creation will be aborted. You thenreturn to the function selection.

You can follow the conversion process by meansof a window in which the text numbers arecontinuously shown.

ABG-SF 3 3. Creating the software modules

9708b 3-11

Page 83: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter entry for creating a module

The parameters to be specified depend on thetype of module. Make sure that the operands arenot already assigned in the allocation list. Youmust specify the following when creating thesoftware module:

• 3FD_XABG.MAK / 3FD^XABG.MAK"Display driver ABG, texts in SF 3 (internaltexts)"

+-----[FST V3.2 display driver ABG, internal texts]----+| With edge detection? (1=Yes/0=No) : 1 || Activate sign detection with flag : F 00.00 || Module transmitting text (Busy) : F 00.01 || Character output delay in ms (0,1,2) : 0 |+---------------------------------------------------------+

Parameters to be entered:

– edge detection (see chapter 3.1)

– sign detection (see chapter 3.1)

– module transmitting text; this flag is set by themodule providing texts or variables are sentto the display

– output delay (see chapter 3.1).

When you have entered all the parameters,activate the function Execute (F1). This con-cludes the module creation and you can nowload the module into the controller.

The parameters with which the module can beaccessed in the program are described inchapter 4.

F1

ABG-SF 3 3. Creating the software modules

3-12 9708b

Page 84: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

3.3 Creating a module with the function Include module

By means of the function Incorporate module inthe FST software, you can create the followingsoftware modules from the MAK files in thedirectory \LIB:

– Display driver, text in the display (externaltexts)- 3FD_216S.MAK / 3FD^216S.MAK- 3FD_240S.MAK / 3FD^240S.MAK

– Keyboard/input driver- 3_EABG.MAK / 3^EABG.MAK- 3_EABG2.MAK / 3^EABG2.MAK- 3_ABG80.MAK / 3^ABG80.MAK

– Driver for general character input/output viathe diagnostic interface (multi-communica-tion modules)- 3_ETMV5.MAK / 3^ETMV5.MAK

– Other modules (32-bit arithmetic, driver forPCS operating consoles, see Appendix A)

The appropriate MAK file must exist in the \LIBdirectory for this purpose. The MAK files de-scribed in this manual are automatically incorpor-ated when the FST software is installed. OtherMAK files must first be imported into the \LIBdirectory with the function Import file.

ABG-SF 3 3. Creating the software modules

9708b 3-13

Page 85: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

When the module is accessed, texts andvariables are transferred to the display (seechapter 4).

Please note:Display drivers for texts in the SF 3 (internaltexts) must be created with the display editor(see chapter 3.2).

Texts

Display editor

MAK file Display file

Module Further programs

Module

Programs

Load

project

Include module(configuration)

Keyboard

Load displayRAM *)

Load EPROM *)

*) Only for display drivers, text in the display

Fig. 3/4: Creating a module with the function "Include module"

ABG-SF 3 3. Creating the software modules

3-14 9708b

Page 86: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

If display drivers are used for RAM, EPROM andfield bus modes (texts in the display), the displaymust have sufficient memory space and asuitable interface. You can create the display filein this memory with the aid of the display editor(see chapters 2.5 and 2.6). The texts are then inthe display.

You can transfer the texts from the text memoryinto the display by accessing the text numberswith the aid of the appropriate software module.

Creating CMP/CFM

1. Load the project/program for which you wishto create texts.

2. Start the display editor of the FST200.

3. Activate the function Include module in theproject management. The selection of MAKfiles in the directory \LIB then appears.

ABG-SF 3 3. Creating the software modules

9708b 3-15

Page 87: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4. Select the MAK file with which you wish tocreate the software module. You can activatethe desired entry by clicking twice with themouse or by positioning the bright back-ground and pressing the Enter key.

Specifications on using the new module are thenrequested in a window.

Fig. 3/5: Include module (selection)

ABG-SF 3 3. Creating the software modules

3-16 9708b

Page 88: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5. Enter under Prog./Module, whether a programmodule (B) or a function module (F) is to becreated with the MAK file selected.

6. Enter a free number for the software module.Depending on the type of software module,this must lie between 0 and 15 (CMP) or be-tween 90 and 99 (CFM).

7. In order to create several versions, you canenter a number between 1 and 9. Under De-scription you should enter a description of thesoftware module, usually a comment on theMAK file.

Fig. 3/6: Specifications on the module

ABG-SF 3 3. Creating the software modules

9708b 3-17

Page 89: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

8. Activate Include (F1), if all the specificationshave been entered correctly.

If a module with the specified module dataalready exists, the following question will appearon the screen:

Module xx/ZE0 (or function xx/ZE0) alreadyexists in the project directory.

Overwrite? (Y/N)

Yes The module will be created further. The already existing module will be overwritten.

No Module creation will be aborted. You then return to the function selection.

The software modules use certain operands forparameter transfer. These are interrogated in awindow.

A description of the operands, which are re-quired for the special modules, can be found inthe following sections or in Appendix A.

F1

ABG-SF 3 3. Creating the software modules

3-18 9708b

Page 90: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter entry for creating a module

The parameters to be specified depend on thetype of module. Make sure that the specifiedoperands are not already assigned in theallocation list.

You must specify the following when creating thesoftware module:

• 3FD_216S.MAK / 3FD^216S.MAK"Display driver FD-X/40S, text in ABG (exter-nal texts)"

+----[FST V3.2 Display driver ABG, Text in ABG]----- +| With edge detection? (1=Yes/0=No) : 1 || Activate sign detection with flag : F 00.00 || Module transmitting text (Busy) : F 00.01 || Character output delay in ms (0,1,2) : 0 |+---------------------------------------------------------+

Parameters to be entered (see also chapter 3.1):

– edge detection

– sign detection

– module transmitting text; this flag is set by themodule providing texts or variables are sentto the display

– output delay

ABG-SF 3 3. Creating the software modules

9708b 3-19

Page 91: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

• 3FD_240S.MAK / 3FD^240S.MAK"Display driver FD-X/40S, text in ABG (external texts)"

+--[FST V3.2 Display driver FD-X/40S, external texts]--+| With edge detection? (1=Yes/0=No) : 1 || Activate sign detection with flag : F 00.00 || Module transmitting text (Busy) : F 00.01 || Character output delay in ms (0,1,2) : 0 |+---------------------------------------------------------+

Parameters to be entered as for 3FD_216S.MAK/3FD^216S.MAK (see also chapter 3.1).

• 3_EABG.MAK / 3^EABG.MAK"Driver for keyboard E.ABG, integer value"

+--[FST V3.2 Driver for keyboard E.ABG, integer value]-- +| Auxiliary flag word (flag 0..31) : FW 10 || Register for keyboard buffer (R0..127) : R 010 |+-----------------------------------------------------------+

Parameters to be entered (see also chapter 3.1):

– Auxiliary flag word. Flags Mx.0 to Mx.5 areset when the relevant key is pressed. FlagMx.6 is used for displaying a modification tothe keyboard buffer. If flag Mx.7 is reset, themodule will be re-initialized. (x ... specifiedflag word)

– Register for keyboard buffer. The softwaremodule stores the contents of the keyboardbuffer in the register specified.

ABG-SF 3 3. Creating the software modules

3-20 9708b

Page 92: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

• 3_EABG2.MAK / 3^EABG2.MAK"Key interrogation/LED control ABG-2"

+----[FST V3.2 Key interrog./LED activation ABG-2]---- +| 1. Flag-word for key-flags (0..31) : FW 10 || 2. Flag-word for key/LED-flags (0..31) : FW 11 || 3. Flag-word for LED-flags (0..31) : FW 12 |+---------------------------------------------------------+

Parameters to be entered (see also chapter 3.1):

– Flag-word for key-flags. Flags Mx.0 to Mx.15are set when the relevant key is pressed andreset when the key is released.(x ... specified flag word)

– Flag-word for key/LED-flags. Flags My.0 toMy.3 are set when the relevant key ispressed and reset when the key is released.If flag My.4 is set, the software module willhave received an acknowledgement to thestatus request (Mz.12) of the E.ABG.2. Themodule sets flag My.5 providing a string issent to the LED controller.Flags My.8 to My.15 serve for controlling theLEDs. (y ... specified flag word)

– Flag-word for LED-flags. Flags Mz.0 to Mz.11serve for controlling the LEDs. If flag Mz.12 isset, a status interrogation is sent to thedisplay. When flag Mz.13 is set, the moduleis initilaized. (z ... specified flag word)

ABG-SF 3 3. Creating the software modules

9708b 3-21

Page 93: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

• 3_ABG80.MAK / 3^ABG80.MAK"Driver for keyboard E.ABG-80"

+-------[FST V3.2 Driver for keyboard E.ABG-80]------- +| Auxiliary flag word (flag 0..31) : FW 10 || Register for keyboard buffer (R0..127) : R 010 |+---------------------------------------------------------+

Parameters to be entered (see also chapter 3.1):

– Auxiliary flag word. Flags Mx.0 to Mx.5 andMx.12 to Mx.15 are set when the relevant keyis pressed. Flag Mx.6 is used for displaying amodification to the keyboard buffer. If flagMx.7 is reset, the module will be re-initialized.(x ... specified flag word)

– Register for keyboard buffer. The softwaremodule stores the contents of the keyboardbuffer in the register specified.

ABG-SF 3 3. Creating the software modules

3-22 9708b

Page 94: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

• 3_ETMV5.MAK / 3^ETMV5.MAK"Text module V5 - SF3"

+------------[FST V3.2 Text module V5 - SF3]-----------+| Watchdog Timer for input : T 15 || Flag for Input status : F 15.00 || Flag to abort input : F 15.01 || Data Register for ASCII char. (0..127) : R 015 || Output variables with sign detection : F 15.02 |+---------------------------------------------------------+

Parameters to be entered (see also chapter 3.1):

– Watchdog Timer for input. The timer monitorsthe value input for a variable. If the timepreselected by program is exceeded, the flagfor timeout will be set and the softwaremodule will be exited.

– Flag for input status. The flag is set as soonas the value input for a variable does not takeplace within the preselected time.

– Flag to abort input. If the flag is set, theASCII character input will be interrupted andreturn will be made to the accessing program.

– Data Register for ASCII characters. The lastor the last two ASCII characters entered willbe stored in this register.

– Output variables with sign detection.

ABG-SF 3 3. Creating the software modules

9708b 3-23

Page 95: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

When you have entered all the parameters,activate the function Execute (F1). Creation ofthe module is then concluded and you can loadthe module into the controller.

The parameters with which the module can beaccessed in the program are described inchapter 4.

F1

ABG-SF 3 3. Creating the software modules

3-24 9708b

Page 96: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Register 4

Description of the modules

Accessing in the user program

ABG-SF 3 4. Description of the modules

9708b 4-1

Page 97: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents4.1 General instructions on accessing

modules . . . . . . . . . . . . . . . . . . . . . . . . 4-54.1.1 Initializing modules or displays. . . . . . . 4-64.1.2 Cyclic module access . . . . . . . . . . . . . . 4-74.1.3 Evaluation of status flags/

error messages . . . . . . . . . . . . . . . . . . . 4-84.1.4 Software modules and

command interpreter . . . . . . . . . . . . . . . 4-9

4.2 Module as display driver, texts inthe SF 3 (internal texts) . . . . . . . . . . 4-10Method of operation . . . . . . . . . . . . . . 4-10Parameter transfer . . . . . . . . . . . . . . . 4-12Examples of application . . . . . . . . . . . 4-13Error messages. . . . . . . . . . . . . . . . . . 4-15

4.3 Module as display driver, texts in the display . . . . . . . . . . . . . . . . . . . . . 4-16Method of operation . . . . . . . . . . . . . . 4-16Settings and operands . . . . . . . . . . . . 4-18Parameter transfer . . . . . . . . . . . . . . . 4-19Examples of application . . . . . . . . . . . 4-20Error messages. . . . . . . . . . . . . . . . . . 4-22

4.4 Module as input driver for key interrogation/keyboard buffer . . . . . 4-23Method of operation . . . . . . . . . . . . . . 4-23Settings and operands for the E.ABG-1 . . . . . . . . . . . . . . . . . . . . 4-25Parameter transfer . . . . . . . . . . . . . . . 4-28Example of application . . . . . . . . . . . . 4-29Error messages. . . . . . . . . . . . . . . . . . 4-29Remarks . . . . . . . . . . . . . . . . . . . . . . . 4-29

ABG-SF 3 4. Description of the modules

4-2 9708b

Page 98: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.5 Module as input driver for key interrogation/LED display. . . . . . . . . 4-30Method of operation . . . . . . . . . . . . . . 4-30Settings and operands for the ABG-2 . . . . . . . . . . . . . . . . . . . . . 4-32Parameter transfer . . . . . . . . . . . . . . . 4-34Example of application and error messages . . . . . . . . . . . . . . . . . . 4-34Error messages. . . . . . . . . . . . . . . . . . 4-35Remarks . . . . . . . . . . . . . . . . . . . . . . . 4-35

4.6 Multi-communication module . . . . . 4-36Method of operation . . . . . . . . . . . . . . 4-36Operands . . . . . . . . . . . . . . . . . . . . . . 4-39Parameter transfer . . . . . . . . . . . . . . . 4-40Text output (input parameter P1 = 0) 4-41Variable output unformatted . . . . . . . . . . (input parameter P1 = 1) . . . . . . . . . . 4-41Variable output formatted . . . . . . . . . . . . (input parameter P1 = 1) . . . . . . . . . . 4-42Control character output (input parameter P1 = 2) . . . . . . . . . . 4-44Value input for multi-bit operands without timeout(input parameter P1 = 3) . . . . . . . . . . 4-45Value input for multi-bit operands with timeout (input parameter P1 = 4) . . . . . . . . . . 4-46ASCII character input (input parameters P1 = 5) . . . . . . . . . 4-47Display ABG internal texts . . . . . . . . . . . (input parameter P1 = 6) . . . . . . . . . . 4-49Remarks . . . . . . . . . . . . . . . . . . . . . . . 4-50

ABG-SF 3 4. Description of the modules

9708b 4-3

Page 99: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The currently available MAK files and softwaremodules for display and operation are describedin detail in the following chapters.

Please observe first the general information inchapter 4.1.

MAK files Module type Chapter

3FD_XABG.MAK 3FD^XABG.MAK

Display driver, texts inSF 3

4.2

3FD_216S.MAK 3FD^216S.MAK

Display driver, texts inthe display

4.3

3FD_240S.MAK 3FD^240S.MAK

3_EABG.MAK 3^EABG.MAK

Key/keyboard driver(input driver for key interrogation andkeyboard buffer)

4.4

3_ABG80.MAK 3^ABG80.MAK

3_EABG2.MAK3^EABG2.MAK

Input driver for key interrogation and LEDdisplay

4.5

3_ETMV5.MAK 3^ETMV5.MAK

Driver for characterinput and output (multi-communicationmodule)

4.6

ABG-SF 3 4. Description of the modules

4-4 9708b

Page 100: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.1 General instructions on accessing modules

The software modules as display and keyboarddriver are accessed by a user program.

You should take the following into considerationwhen planning your user program system:

– lnitialization of the SF 3 (with function moduleCFM 0, delete internal operands)

– Initialization of the display

– Cyclic module access

– Entries in the allocation list

– Communication via special operands, regis-ters and flags

– Evaluation of error messages

The software modules for the display andoperation units available at present are accessedby a program. Communication is made viaregisters, flags and special function units (FUs).

ABG-SF 3 4. Description of the modules

9708b 4-5

Page 101: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.1.1 Initializing modules or displays

When a control system is switched on, operandsusually assume random values. It is thereforenecessary to set all the operands to definedoutput values at the beginning of a controlprogram. This also applies to the par-ameters/operands of the software modules forthe displays.

For this reason, an automatic basic initializationtakes place the first time a software module isaccessed. If the operands of these softwaremodules are to be reset again later during theprogram sequence, this must be programmed viathe appropriate flags of the module.

With some displays, you can also reset thecomplete system by means of flags (e.g. ABG-2).

ABG-SF 3 4. Description of the modules

4-6 9708b

Page 102: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.1.2 Cyclic module access

Important program functions should be carriedout regularly (cyclically). You should also monitorkeys to see if they have been actuated.

Recommendation.Access the appropriate software modules (inputdriver) cyclically, e.g. in organisation programP0. In this way you can be sure that, in the caseof displays without a keyboard buffer, the keysare reliably monitored to see if they have beenactuated.

In the case of displays with a keyboard buffer,you need only press the Return key andtransfer the value entered (e.g. ABG-80: up tofive positions) from the keyboard buffer.

CR

ABG-SF 3 4. Description of the modules

9708b 4-7

Page 103: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.1.3 Evaluation of status flags/error messages

The software modules return status messages orerror messages via certain flags or specialoperands. These should be evaluated in youruser program.

There are three methods of interrogating errormessages:

– In terminal mode of the on-line mode via theCI- command interpreter:

– The following data are output when theerror number is interrogated with "DF:">DF=nn

|

|

Error number

– In on-line mode as clear text message:In menu "Display SF 3 information" via func-tion key F6 (error/diagnosis)

Example:

Error no. | Error description

-------------¤------------------------100 Incorrect number of

parameters

– In STL/LDR user program via evaluation ofthe return parameter.In the case of return parameter FU32 = 0,return parameter FU33 gives the error num-ber.

F6

ABG-SF 3 4. Description of the modules

4-8 9708b

Page 104: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.1.4 Software modules and command interpreter

If the command interpreter (test system) is activewhen the module is accessed, the module will beexited immediately and the accessing programwill be processed further. No text is output,neither the keyboard buffer nor the key flags areupdated, nor are the key LEDs controlled.

The software module simply checks the par-ameters and, if necessary, enters an errornumber.

Before the RS232 interface (DIAG) (e.g. fordisplaying the texts) can be released, the testsystem must be exited with the command Exit("X"). You can switch back to the test system byentering "CTRL T."

ABG-SF 3 4. Description of the modules

9708b 4-9

Page 105: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.2 Module as display driver, texts in the SF 3 (internal texts)

(e.g. for E.ABG-1, E.ABG-80-LED, E.ABG-2,E.FD-2/40S)

Method of operation

By means of the transfer parameters, thesoftware module receives the numbers of thetexts and, in some cases, any variable stored inthe module. The parameters can be transferredas constants or from multibit operands.

The module transfers all the texts and variablesto be displayed to the ABG. In addition, flagsand special operands are used for sequencecontrol (status of the transfer, type of repre-sentation, faults).

Return jumpwith return parameters

Textsandvariables

PLCprogram

ModuleTextsOperands

Display

Module access with transfer parametersText number, variable

Fig. 4/1: Block diagram for display driver (texts in SF 3)

ABG-SF 3 4. Description of the modules

4-10 9708b

Page 106: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The software module is processed sequentially,i.e. return to the accessing program is not madeuntil the sending procedure for the output iscompletely finished. Other programs are notaffected, they continue to be processed cyclically.

Settings and operands

– Edge detection (see also chapter 3.1)

– Output delay (see also chapter 3.1)

– Entries in the allocation list:

Absolute Symbolic Comment

Vx.y Var_sign Value output sign mode(VZ)1)

Vx.y Busy Module transmitting text2)

Please note: x = 0...31 Word number of flagy = 0...15 Bit number of flag

1) If the flag is set, character output will be with a sign.Value range: Vx.y = 0 0...65535

Vx.y = 1 -32768...32767

2) The flag is set providing text is sent to the display.

ABG-SF 3 4. Description of the modules

9708b 4-11

Page 107: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer

Parameter Value Function

1 1...255 Text number

2 0...65535-32768...32768

Data unsignedData signed

3 1...5 Number of positions inoutputDefault value = 5

4 32...126 Leading signDefault value = 32(empty spaces)

The parameters can be transferred as constantsor from multi-bit operands.

The following can be output depending on theaccessing parameter:

– Only texts (max. 255 texts can be ad-dressed). When the pulse edge evaluation isactive, output of the same immediately conse-cutive texts is suppressed, thereby avoiding aflickering of the display.

– Texts together with unformatted data*) The output has 5 character positions (defaultvalue). The leading character is the emptyspace (default value).

– Texts together with formatted data*)

The output can be limited in the number ofpositions.

*) If the data is represented with a sign, a space is always reserved in front of the data for entering anypossible minus sign. When texts are output together with data, pulse edge evaluation is not effective.

ABG-SF 3 4. Description of the modules

4-12 9708b

Page 108: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Examples of application

Example 1Text output of text no. 10(output of a text specified via parameter 1)

THEN CMP 2 ’Display driver ABG,’Internal texts

WITH V10 "Text number 10

If edge detection is active, a check is first madeto see if the current text number is the same asthe last output text number. If this is the case,no new output takes place.

Example 2Text output together with data (unformatted)

THEN CMP 2 Display driver ABG, ’Internal texts

WITH V5 "Text number 5 - FESTOWITH V-123 "Value

Text no. 5 selected with parameter 1 and thevalue transferred to parameter 2 are then outputwith five character positions and a leading sign.By means of a cursor positioning sequence, thevalue can be placed in front of or in the text.

ABG-SF 3 4. Description of the modules

9708b 4-13

Page 109: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

If the data is represented with a sign, a space isalways reserved in front of the data for enteringany possible minus sign.

Output according to example (sign flag set):

FESTO - 123

Example 3Text output together with data (formatted)

THEN CMP 2 ’Display driver ABG,’Internal texts

WITH V5 "Text number 5"- result:

WITH R0 "Value WITH V3 "Print width 3

"characters WITH V’0’ "Leading sign

You can specify the number of positions in theformatted data output in the 3rd. parameter. Ifthe number of positions is greater than specifiedin the 3rd. parameter, only "$" signs will beoutput. If the specification in the 3rd. parameteris greater than 5, the default value 5 will beentered without an error message.

ABG-SF 3 4. Description of the modules

4-14 9708b

Page 110: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Output (example, sign flag reset):

With R0 = Result

1 001

10 010

100 100

1000 $$$

10000 $$$

Error messages

The software module creates errors 100, 101,104.

Error Description

100 Incorrect number of parameters

101 Error in parameter 1: the specified textnumber is 0 or greater than 255

104 Error in parameter 4: the specified fillingcharacter is not within the permitted range

ABG-SF 3 4. Description of the modules

9708b 4-15

Page 111: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.3 Module as display driver, texts in the display

(e.g. for E.ABG-1, E.ABG-80-LED, E.FD-2/40S)

Method of operation

By means of the transfer parameters, thesoftware module receives the numbers of thetexts and, in some cases, any variable stored inthe module. The parameters can be transferredas constants or from multibit operands.

The module transfers the text numbers andvariables to the ABG. In addition, flags andspecial operands are used for sequence control(status of the transfer, type of representation,faults).

Return jump withreturn parameters

Textnumber

PLCprogram

Module

Operands

Display

Module accesswith transfer parametersTexts and variables

Texts

Variable

Fig. 4/2: Block diagram for display driver (texts in SF 3)

ABG-SF 3 4. Description of the modules

4-16 9708b

Page 112: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The software module is processed sequentially,i.e. return to the accessing program is not madeuntil the sending procedure for the output iscompletely finished. Other programs are notaffected, they continue to be processed cyclically.

The software module outputs the text numberselected with parameter 1 and any transferreddata word to the display via the diagnosticinterface.

Instructions on using any desired display orASCII terminal:A text number output corresponds to an "Escapesequence" or a 2-byte sequence and is com-posed as follows:

MAK file Text number output

3FD_216S.MAK/3FD^216S.MAK

<GS><Text no.><GS> = ASCI control character

‘GS’ (29 dec.)<Text-Nr.> = Binary value,

z. B. 65 dec.

3FD_240S.MAK/3FD^240S.MAK

<ESC><Z><Text-Nr.><ESC> = ASCII control character

‘Escape’ (27 dez.)<Z> = ASCII character ’Z’<Text no.> = 3 decimal positions

e.g. 075

ABG-SF 3 4. Description of the modules

9708b 4-17

Page 113: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Settings and operands

– Edge detection (see also chapter 3.1)

– Output delay (see also chapter 3.1)

– Entries in the allocation list:

Absolute Symbolic Comment

Vx.y Var_sign Value output signmode (VZ) 1)

Vx.y Busy Module transmittingtext 2)

Please note: x = 0...31 Word number flagy = 0...15 Bit number flag

1) If the flag is set, characters will be output with sign.Value range: Vx.y = 0 0...65535

Vx.y = 1 -32768...32767

2) The flag is set providing text is sent to the display.

ABG-SF 3 4. Description of the modules

4-18 9708b

Page 114: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer

Parameter Value Function

3FD_216S.MAK/3FD^216S.MAK

3FD_240S.MAK/3FD^240S.MAK

1 1...999 1...255 Text number

2 0...65535-32768...32768

Data unsignedData signed

3 1...5 Number of positions in the outputDefault value = 5

4 32...126 Leading signDefault value = 32 (emptyspaces)

The parameters can be transferred as constantsor from multi-bit operands.

The following can be output depending on theaccessing parameters:

– Only texts (addressing of max. 999 resp. 255texts possible).

– Texts together with unformatted data*) The output has 5 character positions (defaultvalue). The leading character is the emptyspace (default value).

– Texts together with formatted data*)

The output can be limited in the number ofcharacter positions.

*) If the data is represented with a sign, a space is always reserved in front of the data for entering any possible minus sign. When texts are output together with data, edge detection is not effective.

ABG-SF 3 4. Description of the modules

9708b 4-19

Page 115: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Examples of application

Example 1Text output (output of a text specified viaparameter 1)

THEN CMP 2 ’Display driver ABG,’Internal texts

WITH V10 "Text number 10

Example 2Text output together with data (unformatted)

THEN CMP 2 ’Display driver ABG,’Internal texts

WITH V5 "Text number 5 - FESTO WITH V-123 "Value

The text number selected with parameter 1 andthe value transferred to parameter 2 are thenoutput with five positions with leading emptyspace. By means of a cursor positioning se-quence, the value can be placed in front of or inthe text.

If the data is represented with a sign, a space isalways reserved in front of the data for enteringany possible minus sign.

Output according to example (sign flag set):

FESTO - 123

ABG-SF 3 4. Description of the modules

4-20 9708b

Page 116: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Example 3Text output together with data (formatted)

THEN CMP 2 ’Display driver ABG,’Internal texts

WITH V5 "Text number 5 - result: WITH R0 "Value WITH V3 "Print width 3

"characters WITH V’0#’ "Leading sign

You can specify the number of characterpositions in the formatted data output in the 3rd.parameter. If the number of positions is greaterthan specified in the 3rd. parameter, only "$"signs will be output. If the specification in the3rd. parameter is greater than 5, the defaultvalue 5 will be entered without an error mess-age.

Output (example, sign flag reset):

With R0 = Result

1 001

10 010

100 100

1000 $$$

10000 $$$

ABG-SF 3 4. Description of the modules

9708b 4-21

Page 117: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Error messages

The software module creates errors 100, 101,104.

Error Description

100 Incorrect number of parameters

101 Error in parameter 1: Valid range:1 to 255 (FD_240) 1 to 999 (FD_216).

104 Error in parameter 4: the specified fillingcharacter is not within the permitted range.

ABG-SF 3 4. Description of the modules

4-22 9708b

Page 118: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.4 Module as input driver for key interrogation/keyboard buffer

(e.g. for E.ABG-1, E.ABG-80-LED)

Method of operation

When the key is pressed on the ABG, thesoftware module sets the appropriate flag. Thisflag can then be evaluated and reset by theaccessing program.

The contents of the key buffer (value entered onthe ABG) is loaded into the appropriate register.In addition, certain flags are used for sequencecontrol (modification of value, initialization).

Return jump

Key

PLCprogram

Module

Operands

Module accesswith transfer parametersmin./max. input value

Keyboard buffer

Fig. 4/3: Block diagram of input driver (key interrogation and keyboard

ABG-SF 3 4. Description of the modules

9708b 4-23

Page 119: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The software modules have been designed forcyclic data exchange with the display andoperating units ABG-1 and ABG-80-LED.

The software modules are processed in scanmode, i.e. there are no delays in keyboardinterrogation or in management of the keyboardbuffer. After access return is made immediatelyto the accessing program.

In order to continually update the key flags andthe keyboard buffer, you must access themodules cyclically.

ABG-SF 3 4. Description of the modules

4-24 9708b

Page 120: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Settings and operands for the E.ABG-1(3_EABG.MAK / 3^EABG.MAK)

– Entries in the allocation list:

Absolute Symbolic Comment

Fx.0 Enter E.ABG: Enter key pressed1)

Fx.1 F1 E.ABG: F1 key pressed 1)

Fx.2 F2 E.ABG: F2 key pressed 1)

Fx.3 F3 E.ABG: F3 key pressed 1)

Fx.4 F4 E.ABG: F4 key pressed 1)

Fx.5 Clear E.ABG: CLEAR key pressed 1)

Fx.6 Change E.ABG: Value changed 2)

Fx.7 Initbuff E.ABG: Init if flag = 0 3)

Ry Buffer E.ABG: Keyboard buffer 4)

Please note: x = 0...31 Word number flagy = 0...127 Word number register

1) Flags Fx.0 to Fx.5 are set when the relevant key is pressed.The flags must be reset in the user program.

2) The flag for value modification is set if the value in the keyboard buffer has been modified. This is the casewhen:– the CLEAR key is pressed (keyboard buffer is

deleted) – one of the number keys 0 to 9 is pressed.3) The flag is set when the driver is accessed the first

time and when the test system is exited. If the flag is reset, basic initialization of the software module will take place.

4) The value entered will be stored with the correct character positions in this register (keyboard buffer). The keyboard buffer is deleted when:– the CLEAR key is pressed– the permitted input range is not reached or is

exceeded by the value entered.

ABG-SF 3 4. Description of the modules

9708b 4-25

Page 121: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Settings and operands for the ABG-80-LED(3_ABG80.MAK / 3^ABG80.MAK)

- Entries in the allocation list:

Absolute Symbolic Comment

Fx.0 Enter E.ABG-80: ENTER key pressed 1)

Fx.1 F1 E.ABG-80: F1 key pressed 1)

Fx.2 F2 E.ABG-80: F2 key pressed 1)

Fx.3 F3 E.ABG-80: F3 key pressed 1)

Fx.4 F4 E.ABG-80: F4 key pressed 1)

Fx.5 Clear E.ABG-80: CLEAR key pressed 1)

Fx.6 Change E.ABG-80: Value changed 2)

Fx.7 Initbuff E.ABG-80: Init if flag = 0 3)

Fx.12 F5 E.ABG-80: F5 key pressed 1)

Fx.13 F6 E.ABG-80: F6 key pressed 1)

Fx.14 F7 E.ABG-80: F7 key pressed 1)

Fx.15 F8 E.ABG-80: F8 key pressed 1)

Ry Buffer E.ABG-80: Keyboard buffer 4)

Please note: x = 0...31 Word number flagy = 0...127 Word number register

Table keys 1) to 4) see following page

ABG-SF 3 4. Description of the modules

4-26 9708b

Page 122: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1) Flags Fx.0 to Fx.5 and Fx.12 to Fx.15 are set whenthe relevant key is pressed.The flags must be reset in the user program.

2) The flag for value modification is set if the value in the keyboard buffer has been modified. This is the casewhen:– the CLEAR key is pressed (keyboard buffer is

deleted)– one of the number keys 0 to 9 is pressed.

3) The flag is set when the driver is accessed the firsttime and when the test system is exited. If the flag is reset, basic initialization of the software module will take place (flags and registers will be reset).

4) The value entered will be stored with the correct character positions in this register (keyboard buffer). The keyboard buffer is deleted when:– the CLEAR key is pressed– the permitted input range is not reached or is

exceeded by the value entered.

ABG-SF 3 4. Description of the modules

9708b 4-27

Page 123: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer

When the software module without parametertransfer is accessed, the sequence of numbersentered will be checked to ensure that they lie inthe value range 0....65535.

If one parameter is transferred during accessing,it will correspond to the maximum input value. Iftwo parameters are specified, a valid valuerange will be defined for the entry.

Number ofparameters

Minimum inputvalue

Maximum inputvalue

0 0 65535

1 0 Value of parameter 1

2 Value of smallerparameter entered

Value of larger parameter entered

If texts/control characters are to be output on thedisplay, the driver must be created for this withMAK file 3FD_XABG.MAK or 3FD^XABG.MAK.The display editor of the FST200 is requiredhere.

ABG-SF 3 4. Description of the modules

4-28 9708b

Page 124: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Example of application

A sequence of numbers concluded with theENTER key is to be entered in the valid valuerange from 10000 to 10999.

STEPTHEN LOAD V0

TO R10 ’E.ABG: ’Keyboard buffer

STEPTHEN CMP 0 ’Driver for keyboard

’E.ABG, Integer value WITH V1000 "min. input value WITH V10999 "max. input value

.

.IF F10.0 ’E.ABG: ENTER keyTHEN RESET F10.0 ’E.ABG: ENTER key

If more than two parameters are entered, onlythe first two will be interpreted.

Error messages

The software module does not produce any errormessages.

Remarks

It is sensible if the software module is accessedcyclically from only one program.

If the module receives non-defined ASCII codes(key codes), these will be ignored.

ABG-SF 3 4. Description of the modules

9708b 4-29

Page 125: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.5 Module as input driver for key interrogation/LED display

(e.g. for E.ABG-2)

Method of operation

The software module sets the appropriate flagswhen the keys on the ABG are pressed andresets them when the keys are released. Youcan enter numerical values by monitoring thekey flags in the program.

The key LEDs are switched on or off when theLED flags are modified. In addition, certain flagsare used for sequence control (status interroga-tion, status acknowledgement, initialization).

Key

PLCprogram

Module

Operands

Module accesswith transfer parametersmin./max. input value

LED

Return jump

Fig. 4/4: Block diagram of input driver (key interrogation and LED display)

ABG-SF 3 4. Description of the modules

4-30 9708b

Page 126: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The software module has been designed forcyclic data exchange with the ABG-2 display andoperating unit.

The software module is processed in scan mode,i.e. no delays occur when the LEDs arecontrolled (send procedure) or when the keysare interrogated (receive procedure). After ac-cess, return is made immediately to the access-ing program.

In order to continuously update keys and LEDsand to maintain data exchange, you must accessthe software module cyclically.

Only the data actually required are transferred(module-internal edge recognition for setting/re-setting the key LEDs).

ABG-SF 3 4. Description of the modules

9708b 4-31

Page 127: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Settings and operands for the ABG-2(3_EABG2.MAK / 3^EABG2.MAK)

– Entries in the allocation list:

Absolute Symbolic Comment

Fx.0 F_1_key E.ABG2: F1 key pressed 1)

Fx.1 F_2_key E.ABG2: F2 key pressed 1)

... ... E.ABG2: F... key pressed 1)

Fx.14 F15_key E.ABG2: F15 key pressed 1)

Fx.15 F16_key E.ABG2: F16 key pressed 1)

Fy.0 F17_key E.ABG2: F17 key pressed 1)

Fy.1 F18_key E.ABG2: F18 key pressed 1)

Fy.2 F19_key E.ABG2: F19 key pressed 1)

Fy.3 F20_key E.ABG2: F20 key pressed 1)

Fy.4 Status_OK E.ABG2: Acknowledgementstatus 3)

Fy.5 Send_LED E.ABG2: Update LED active 4)

Fy.8 LED_F1 E.ABG2: LED F1 key 2)

Fy.9 LED_F2 E.ABG2: LED F2 key 2)

... ... E.ABG2: LED F... key 2)

Fy.14 LED_F7 E.ABG2: LED F7 key 2)

Fy.15 LED_F8 E.ABG2: LED F8 key 2)

Fz.0 LED_F9 E.ABG2: LED F9 key 2)

Fz.1 LED_F10 E.ABG2: LED F10 key 2)

... ... E.ABG2: LED F... key 2)

Fz.10 LED_F19 E.ABG2: LED F19 key 2)

Fz.11 LED_F20 E.ABG2: LED F20 key 2)

Fz.12 Status E.ABG2: Request status 5)

Fz.13 Init E.ABG2: Program module init 6)

Please note: x = 0...31 Word number key flagy = 0...31 Word number key/LED flagz = 0...31 Word number LED flag

Table keys 1) to 6) see following page.

ABG-SF 3 4. Description of the modules

4-32 9708b

Page 128: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1) Flags Fx.0 to Fx.15 and Fy.0 to Fy.3 are set when therelevant key is pressed and reset when the key is released.

2) Flags Fy.8 to Fy.15 and Fy.0 to Fz.11 are used forcontrolling the LEDs. If a flag is modified, the relevantkey LED will be switched on/off.

3) If the flag is set, the software module receives an acknowledgement for the status request (Fz.12) fromthe E.ABG-2 ( = O.K.). The flag must be reset by theuser program.

4) This flag is set providing a string is sent for the LEDUpdate.

5) When the flag is set, a status interrogation of the display is made. If the send order is accepted, the software module will reset the flag again. The statusrequest should not be cyclic, but timer-controlled.In this way the functioning of the display can be checked.

6) When the flag is set, the module is initialized:– the key flags are reset– the Init sequence is sent to the display, all LEDs

are switched off – the module-internal flags for pulse edge control are

reset– the flags for status acknowledgement and for LED

Update are reset. Initialization is carried out automatically:

– the first time the module is accessed– when the test system is exited (CI command "X")

ABG-SF 3 4. Description of the modules

9708b 4-33

Page 129: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer

There is no parameter transfer when the soft-ware module is accessed.

If the CI command interpreter (test system) isactive at the moment the module is accessed,the module will be exited immediately and theaccessing program will be processed further.The key LEDs are not actuated and the keyflags cannot be updated.

If texts/control characters are to be output on thedisplay, the driver 3FD_XABG.MAK or3FD^XABG.MAK must be used for this purpose.The display editor of the FST200 is required forcreating texts.

Example of application and error messages

Example:

THEN CMP 1 ’Key interrogation’LED_control ABG-2

IF F_1_key ’E.ABG2: F1 key THEN SET LED_F1 ’E.ABG2: LED F1 key

RESET LED_F2 ’E.ABG2: LED F2 keyIF F_2_key ’E.ABG2: F2 key THEN RESET LED_F1 ’E.ABG2: LED F1 key

SET LED_F2 ’E.ABG2: LED F2 keyIF NOPTHEN PW

When the function keys F1 or F2 are pressed,the appropriate key LEDs are switched on/off.

F2

F1

ABG-SF 3 4. Description of the modules

4-34 9708b

Page 130: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Error messages

The software module does not produce any errormessages.

Remarks

It is sensible if the software module is accessedcyclically from only one program. If the softwaremodule receives non-defined ASCII codes (keycodes), these will be ignored.

ABG-SF 3 4. Description of the modules

9708b 4-35

Page 131: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

4.6 Multi-communication module

(for character input/output on any display)

Method of operation

The software module enables communication(character input and output) with any display andoperating unit via the RS232 interface (DIAG) ofthe SF 3. Communication is ensured by meansof various operands (e.g. flags, registers, func-tion units).

The method of operation of the multi-communi-cation module changes depending on the ac-cessing parameters and is described in detail insubsequent sections. The following methods ofoperation are possible:

ABG-SF 3 4. Description of the modules

4-36 9708b

Page 132: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Function Meaning

Text output A max. 54-character long ASCII sequence is output.The text is stored in the user program.

Variable output (unfor-matted/formatted)

Output of values from the user program with/withoutsign. No. of positions max. 5.

Control characteroutput

A sequence of max. 27 control characters (Hexformat) is output. The text is stored in the userprogram.

Value input for multi-bit operands (with/without timeout)

A value is loaded as hexadecimal or with max.five figures. The value is returned as hexadecimal, decimal (with/without sign).

ASCII character input(key codes or character strings)

A sequence of ABG key codes is loaded. Entry isconcluded with the return key (<CR>). Depending onaccess, two ASCII characters are returned in a register or up to 4047 characters in the special function units.

Display ABG-internaltexts

Access texts which are stored in the display (external texts).

The use of the functions and possibilities of this software module depend onthe circumstances of your display and operating unit. For further informationplease refer to the manual for your ABG.

ABG-SF 3 4. Description of the modules

9708b 4-37

Page 133: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The driver is processed sequentially, i.e. returnto the accessing program is not made until thesend procedure during output is concluded, oruntil input is completely concluded. Other pro-grams are not affected, they are processedfurther cyclically.

Any displayor ASCIIterminal

PLCprogram

Module

Operands

Return jumpwith return

Texts andvariables

Module accesswith transfer parametersmin./max.input value

Fig. 4/5: Block diagram of multi-communication module

ABG-SF 3 4. Description of the modules

4-38 9708b

Page 134: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

– Entries in the allocation list:

Absolute Symbolic Comment

Tn Inp_Timer Timer for input timeout 1)

TVn Inp_TPRE Timer preselect for input1)

TWn Inp_Tword Timer word-input Timeout 1)

Fx.y Time_out Flag for input status 2)

Fx.y Abort_Inp Flag for input abort3)

Fx.y Var_sign Value output sign mode 4)

Rm AsciiVal Return Value of ASCII Input 5)

Please note: n = 0...31 Bit number of timer status/word number, timer preselect,timer word

x = 0...31 Word number of flag y = 0...15 Bit number of flag m = 0...127 Word number of register

1) The timer monitors the value input for a variable. If the time selected by program is exceeded, the flag for timeout will be set and the software module exited.

2) The flag is set if the value input for a variable does nottake place within the preselected time. If there is a fault (timeout), the software module will be exited.

3) If the flag is set, the ASCII character input will be interrupted and return will be made to the accessing program.

4) When the flag is set, the characters are output withsign. Value range:Fx.y = 0 0...65535Fx.y = 1 -32768...32767

5) The last or the last two ASCII characters entered will be stored in this register; the last in the low byte, the last but one in the high byte.

ABG-SF 3 4. Description of the modules

9708b 4-39

Page 135: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer

The functioning of the module is determined bythe 1st. accessing parameter.

Category(1st. parameter)

Function

0 Text output

1 Variable output

2 Control character output

3 Value input without timeout

4 Value input with timeout

5 ASCII character input

6 Display ABG internal texts

Depending on this, a check of the permittednumber of parameters will be made. If there is adeviation, error message 100 will be shown.

The display editor of the FST200 is not requiredfor creating the texts and control characters tobe output. These texts and characters aredefined as a string parameter when the moduleis accessed and stored in the accessing pro-gram.

The parameters can always be transferred asconstants or from multi-bit operands.

ABG-SF 3 4. Description of the modules

4-40 9708b

Page 136: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Text output (input parameter P1 = 0)

Input parameter P2 = String parameter, maximum

54-characters long (any ASCII sequence in inverted commas)

Example:

THEN CMP 15 ’Text module V5 - SF 3 WITH V0 WITH ’Text output’

The text transferred as string parameter is outputvia the diagnostic interface.

Variable output unformatted (input parameter P1 = 1)

Input parameterP2 = 0...65535 Variable value

without signor = -32768...32767 Variable value

with sign

Example:

THEN CMP 15 ’Text module V5 - SF 3 WITH V1 WITH R0 "Variable value

The variable value transferred as parameter isoutput unformatted via the diagnostic interfacewith/without sign corresponding to the flag forsign evaluation.

ABG-SF 3 4. Description of the modules

9708b 4-41

Page 137: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Variable output formatted (input parameter P1 = 1)

Input parameterP2= 0...65535 Variable value without signor = -32768...32767 Variable value with signP3= 1...5 Number of positions in

outputP4= 32...126 Leading character

(optional)

Example:

THEN CMP 15 ’Text module V5 - SF 3WITH V1WITH R0 "Variable valueWITH V5 "Number of positions

WITH V32 "Leading sign (blank)

If more than two parameters are transferred, theoutput will be formatted.

The contents of all mutli-bit operands andconstants are permitted as variable values. Thevalue range is 0..65535 or -32768...32767,depending on the type of representation se-lected. If a form with signs is used, a space isalways reserved in front of the variable for apossible minus character.

ABG-SF 3 4. Description of the modules

4-42 9708b

Page 138: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

In the 3rd. parameter, the number of positions inthe formatted data output can be specified(permitted range 1..5). If the number of positionsin the value is greater than that specified inparameter 3, only "$" characters will be output(format error). If the specification in parameter 3is greater than 5, default value 5 will be enteredwithout an error message.

The ASCII code of the leading characters can betransferred in parameter 4.

Default = empty space (ASCII code 32 dec.). Ifthe valid value range from 32 dec. to 126 dec. isnot reached or is exceeded, error message 104(error in parameter 4) will be entered.

ABG-SF 3 4. Description of the modules

9708b 4-43

Page 139: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Control character output (input parameter P1 = 2)

Input parameterP2 = string parameter, maximum 54

characters long, i.e. 27 hexadecimal characters long (any ASCII sequence in inverted commas)

Example:

THEN CMP 15 ’Text module V5 - SF 3WITH V2WITH ’080A0D’

The control characters transferred as a stringparameter must be entered in hex-format coded,i.e. two consecutive ASCII characters aregrouped together before being output via thediagnostic interface and interpreted as a controlcharacter (valid value range "0" to "9" and "A" to"F"). The resulting control character sequence inthe example would then be <BS><LF><CR>.

If the sequence is not valid, error message 102"Error in parameter 2" will be output and thesoftware module will be exited.

ABG-SF 3 4. Description of the modules

4-44 9708b

Page 140: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Value input for multi-bit operands without ti-meout (input parameter P1 = 3)

Example:

THEN CMP 15 ’Text module V5 - SF 3WITH C3 "Value input without

"timeout

The value input can be hexadecimal (prefixed "$"sign) or a number with max. 5 figures with/with-out sign (prefixed "-" sign for negative numbers).

Value range:- hexadecimal numbers $0...$FFFF- negative numbers -32768...32767- positive numbers 0...65535

Valid characters are reflected (echo), controlcharacters are suppressed.

If the maximum number of characters is ex-ceeded or if invalid characters are entered, thesoftware module will be exited and the returnparameter FU32 <> 0 will show an invalid result.Entry is concluded with the Return key (<CR>).

A valid result is recognized via status message0 in return parameter FU32, the value itself issupplied in FU33.

CR

ABG-SF 3 4. Description of the modules

9708b 4-45

Page 141: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Value input for multi-bit operands with timeout (input parameter P1 = 4)

Example:

STEPTHEN LOAD V3000 ’Time specification 30s

TO TP15 ’Input timeout ’timer pre.

STEP loopIF NOPTHEN CMP 15 ’Text module V5 - SF 3

WITH V4 "Value input with "timeout

LOAD FU32 TO R0LOAD FU33 TO R1

IF F15.0 ’Flag timeout-Stat.-E.THEN JMP TO timeoutOTHRW NOP

This value input has time monitoring. The timerdetermined in the configuration is used here (e.g.timer 15).

The timer is started automatically when themodule is accessed. Only the timer preselectvalue needs to be specified. If the entry is notconcluded with Return key <CR> before the timeset with the timer preselect has expired, thetimeout flag will be set and the software moduleexited. The result is then irrelevant.

A valid result is recognized via status message0 in return parameter FU32, the value itself issupplied in FU33.

CR

ABG-SF 3 4. Description of the modules

4-46 9708b

Page 142: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ASCII character input (input parameters P1 = 5)

Loading ABG key codes

Example:

THEN CMP 15 ’Text module V5 - SF 3 WITH V5 "load ABG key enc.

IF R15=K$4B32 "F.-key F2 pressed?THEN NOPOTHRW PW

For loading the ABG key codes, you can enter asequence of ASCII characters when the modulehas been accessed. The characters are notreflected (no echo). The entry is concluded withthe Return key <CR>. The last or last two ASCIIcharacters entered are stored in the registerdetermined when the module is configured (thelast in the low byte, the last but one in the highbyte).

The software module can be prematurely exitedif the abort flag is set (determined during theconfiguration of the module).

Loading ASCII character strings

Input parameter P2 = 48...4095 Number of special operands P3 = 1....4047 Abort after specified number of characters (optional)

CR

ABG-SF 3 4. Description of the modules

9708b 4-47

Page 143: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Example:

THEN CMP 15 ’Text module V5 - SF WITH V5 "Read ASCII sequence WITH V3000 "Basis address

"special FU WITH V10 "Abort after 10 char.CFM 3 "Read special operand WITH V3000 "Request number

"of char.IF FU33 "With active

"test system= V0 "Repeat access

THEN PW

The 2nd. parameter in the access is interpretedas the basis address in the special operand field,as from which the number of currently receivedcharacters and finally the characters themselvesare stored. A special operand (low byte =character, high byte = 00h) is assigned here foreach character received.

When the module is accessed, the charactercounter is initialized with 0. The charactersreceived are not reflected (no echo). The entryis concluded either with <CR> (Return key) orwhen the number of characters to be received asspecified in parameter 3 is reached (optional). Ifan invalid special operand number is entered,error 102 "Parameter 2 incorrect" will be shown.

CR

ABG-SF 3 4. Description of the modules

4-48 9708b

Page 144: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

You can still abort the module prematurely bysetting the abort flag (determined during theconfiguration of the module).

However, no abort takes place if the operandlimit (FU4095) is reached before the maximumnumber of characters is received.

The last or the last two ASCII characters enteredare stored in the register determined during theconfiguration of the module (the last in the lowbyte, the last but one in the high byte).

Display ABG internal texts (input parameter P1 = 6)

Example:

THEN CMP 15 ’Text module V5 - SF 3 WITH V6 WITH V1 "Text number

The number of the text, which is to be displayedand which is stored in the ABG, is transferredwith the 2nd. parameter. During access thestring dh 01h is sent via the diagnostic interface.No check is made of the specified text number.

ABG-SF 3 4. Description of the modules

9708b 4-49

Page 145: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Remarks

The software module can be accessed simulta-neously from several programs, providing thevalue (function) transferred with P1 is different.

Example: Program P0 outputs text (P1 = 0) andprogram P5 waits for an ASCII charactersequence (P1 = 5) to be input.

If this cannot be assured, either locking must beimplemented by means of flags or the programsmust use different software modules for theiraccess.

ABG-SF 3 4. Description of the modules

4-50 9708b

Page 146: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Register 5

Commissioning the ABG

ABG-SF 3 5. Commissioning the ABG

9708b 5-1

Page 147: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents5.1 Commissioning with display

emulators . . . . . . . . . . . . . . . . . . . . . . . 5-45.1.1 Instructions on the emulators . . . . . . . . 5-55.1.2 Installing the emulators. . . . . . . . . . . . . 5-65.1.3 Accessing and exiting an emulator . . . 5-85.1.4 Description of the emulators. . . . . . . . 5-10

Emulator of the E.ABG-1 . . . . . . . . . . 5-10Emulator of the E.ABG-2 . . . . . . . . . . 5-12Emulator of the E.ABG-80-LED . . . . . 5-13

5.2 Checking the display texts . . . . . . . 5-15

5.3 Practical tips . . . . . . . . . . . . . . . . . . . 5-17

ABG-SF 3 5. Commissioning the ABG

5-2 9708b

Page 148: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

By means of the following functions, the FSTsoftware supports user-friendly commissioning ofthe SF 3 with a display and operating unit:

– Display emulators (for texts in the SF 3 aswell as keyboard entries) and

– Display test (for texts in the ABG).

In this way you can simulate the function of theABG on your PC or check the texts stored in theABG.

This chapter also contains practical tips on howto make commissioning easier.

ABG-SF 3 5. Commissioning the ABG

9708b 5-3

Page 149: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.1 Commissioning with display emulators

During commissioning, the PC is connected tothe SF 3 control unit via the serial interface inorder that programs can be loaded and that theprogramming sequence can be followed. Ifnecessary, you must also check or modify thecontents of single-bit or multibit operands.

If the system is to be operated with an ABG, youmust switch frequently from ABG to PC (or bymeans of a switching box).

This procedure is possible and practicable withall ABGs, but not very user-friendly. Emulatorshave therefore been designed for the mostcommon ABGs from Festo.

Fig. 5/1: Connecting a PC whilst commissioningthe SF3

ABG-SF 3 5. Commissioning the ABG

5-4 9708b

Page 150: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.1.1 Instructions on the emulators

At present, the FST200 contains three emulatorsfor the display and operating units E.ABG-1,E.ABG-2 and E.ABG-80-LED from Festo. Theseemulators form the relevant ABG on the screenof your PC.

You can connect the PC to the RS232 interface(DIAG) of the SF 3 during commissioning and atthe same time:

– load and test user programs and

– show all the texts in the SF 3 (internal texts)on the screen via the emulator and interro-gate keyboard entries.

Information on the scope of the ABG functions isincluded with the relevant display.

Fig. 5/2: User-friendly commissioning with the emulator

ABG-SF 3 5. Commissioning the ABG

9708b 5-5

Page 151: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.1.2 Installing the emulators

The emulators will be installed automaticallytogether with the FST200 on your PC.

The emulators are independent programs whichcan be started with the function Programexecution in the menu Utilities.

1. First select your project.

2. Then start the emulator which is suited toyour ABG with the function Program accessin the menu Utilities.

Only one emulator can be started at one time.

Fig. 5/3: Accessing the emulator (example)

ABG-SF 3 5. Commissioning the ABG

5-6 9708b

Page 152: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The emulator is now loaded into the memory ofthe PC ("memory resident") and can be startedwith ALT+ F10. Memory resident programsremain in the memory of the PC until they areremoved explicitly.

When an FST session is concluded, the loadedemulator must be removed from the memory.This takes place automatically as from version3.2 – revision 8 – 8/97 of the FST200 software.In order to display the version of your FSTsoftware, press key F10 in the main menu. Theversion will then be shown in the status line (e. g.3.2-0008 01.08.97).

For earlier versions or in order to remove theemulator without terminating the FST software,you can enter or execute the commandEABG1N-U:

– with the function Configuration (under program termination),

– or with the function Program execution.

F10

F10Alt +

ABG-SF 3 5. Commissioning the ABG

9708b 5-7

Page 153: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.1.3 Accessing and exiting an emulator

When you have installed an emulator and startedit via the program access, you can access it orsuperimpose it at any time from the background.You can access the memory resident emulatorwith the key combination ALT+F10, whereuponthe relevant ABG will appear on the screen.During this time the other FST functions areblocked.

– Access emulator: ALT + F10

– Exit emulator: ESC

All the text outputs of the SF 3 are now shownon the PC screen of the ABG display. Entriescan be made via the PC keyboard. These entriesare transferred to the SF 3 (according to thecurrent user program).

When you have completed your entries, you canexit the emulator with ESC. All the FST functionsare then available again.

PLEASE NOTEDo not exit the emulator with ESC while theprogram is outputting texts on the display, ascommunication with the test system may bedisturbed. If this does occur, exit the test system with F8and access it again immediately. Communica-tion will then be restored.

ESC

ESC

F8

F10Alt +

ABG-SF 3 5. Commissioning the ABG

5-8 9708b

Page 154: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Remarks and tips

When the ABG is accessed, it appears in the topright-hand corner of the screen. You can movethe superimposed ABG across the screen bymeans of the cursor keys. This information isretained during an FST session.

When the emulator is activated, it stores some ofthe FST software on the hard disc. Approxi-mately 300 kB memory space is required for this.When the emulator is exited, the program partsare reloaded into the work memory.

The operating system of the SF 3 processescommands of the command interpreter beforeprogram-controlled inputs and outputs. When anemulator is accessed, all the other functions ofthe FST, including the command interpreter, willbe blocked.

The emulators exchange the desired data withthe SF 3 via the RS232 interface. The PC reactslike the corresponding ABG and communicateswith the active software module (display/key-board driver) of the user program.

ABG-SF 3 5. Commissioning the ABG

9708b 5-9

Page 155: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.1.4 Description of the emulators

Emulators are available for the following ABGs:

– E.ABG-1

– E.ABG-2

– E.ABG-80-LED

These are described in subsequent chapters.

Emulator of the E.ABG-1

Fig. 5/4: Emulator of the E.ABG-1

ABG-SF 3 5. Commissioning the ABG

5-10 9708b

Page 156: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

After access, the following keys on the PC areactive:

the number keys

the function keys

the CR key

the CI key

ABG-SF 3 5. Commissioning the ABG

9708b 5-11

Page 157: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Emulator of the E.ABG-2

After access, the following keys on the PC areactive:

the top row of keys

the bottom row of keys

Fig. 5/5: Emulator of the E.ABG-2

ABG-SF 3 5. Commissioning the ABG

5-12 9708b

Page 158: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The key LEDs are also emulated on the ABG-2.The circles on the screen next to the keys are:

– dark with bright surround (= LED off)

– bright (= LED on)

The colour also changes in the case of colouredscreens.

Emulator of the E.ABG-80-LED

Fig. 5/6: Emulator of the E.ABG-80-LED

ABG-SF 3 5. Commissioning the ABG

9708b 5-13

Page 159: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

After access, the following keys on the PC areactive:

the number keys

the function keys

the CR key

the "." (<--) key

ABG-SF 3 5. Commissioning the ABG

5-14 9708b

Page 160: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.2 Checking the display texts

In order to check the texts stored in the ABG,you can access them with the function Displaytest, F2) of the display editor.

The display is connected to the PC here with thesame settings as when texts are loaded.

Fig. 5/7: Display Test

F2

ABG-SF 3 5. Commissioning the ABG

9708b 5-15

Page 161: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

When the function Display test is accessed, thefollowing functions are available:

• F1 Select COMWith F1 you can select the serial interfacesuited to the configuration of the display.Each time you press the key, you switch tothe next setting.

• F2 Select displayWith F2 you can select the ABG to be used.Each time you press the key, you switch tothe next setting.

• F3 Intitialize displayThis initializes the connected ABG. Themessage "Initialization completed" is thenshown.

• F4 Display textWith F4 you can enter a text number. Confirmthis with RETURN in order to show therelevant text on the ABG.

• F5 Cycle textWith this function you can show cyclicallytexts with text number 1 to a text numberselected by you. enter the highest textnumber and start displaying the texts withRETURN. Conclude this function with ESC.

• F8 ExitThis function concludes the program andswitches back to the display editor.

F2

F3

F4

F5

F1

F8

ESC

ABG-SF 3 5. Commissioning the ABG

5-16 9708b

Page 162: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

5.3 Practical tips

– Plan the software modules for display andoperation in the user program system fromthe beginning.You then avoid conflicts with module numbersand entries in the allocation list.

– When accessing the software modules, takeinto account that the cycle time increases dueto the time required for entering and output-ting characters (reference value approx. 1 msper character). Observe this especially whenyou access the module from program 0 (orfrom the main program).

ABG-SF 3 5. Commissioning the ABG

9708b 5-17

Page 163: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ABG-SF 3 5. Commissioning the ABG

5-18 9708b

Page 164: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Appendix A

Summary of software modules

ABG-SF 3 Appendix A Software modules

9708b A-1

Page 165: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Contents Software modules for the SF3 . . . . . . . . . . . A-3Naming the MAK files (example) . . . . . . . . . A-4Drivers for any displays (Text in the SF 3). A-5Driver for display FD-2/40-S (Text in ABG) A-7Driver for display E.ABG-1 and E.ABG-80-LED (Text in ABG) . . . . . . . . . . . A-9Driver for keyboard ABG-1 /-EL /-VF /-LED(key interrogation and keyboard buffer). . . A-11Driver for keyboard E.ABG-80-LED(key interrogation and keyboard buffer). . . A-13Driver for keyboard E.ABG-2(key interrogation and LED display). . . . . . A-16Character input/output via the diagnostic interface (multi-commmunication module) . A-19Drivers for PCS operating consoles (only in conjunction with PCSPRO planning software) . . . . . . . . . . . . . . . . . . . . A-24Driver for 32-bit arithmetic(4 basic types of calculating) . . . . . . . . . . . A-30

ABG-SF 3 Appendix A Software modules

A-2 9708b

Page 166: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Software modules for the SF3

Function SupportDisplay type

Brief description MAK file Created

Displaydriver

E.ABG-1(-LED, -VF, -EL)E.ABG-80-LEDE.FD-2/40SE.ABG-2Data line (any display)

Display driver E.ABG-1 (-LED, -VF, -EL), Internal texts

3FD_XABG CMP

3FD^XABG CFM

E.FD-2/40S Display driver FD-X40/S, External texts

3FD_240S CMP

3FD^240S CFM

E.ABG-1 (...)E.ABG-80-LED

Display driver E.ABG-1,E.ABG-80-LED, External texts

3FD_216S CMP

3FD^216S CFM

Keyboarddriver

E.ABG-1(-LED, -VF, -EL)

Driver for keyboard E.ABG-1(-LED, -VF, -EL), Integer value

3_EABG CMP

3^EABG CFM

E.ABG-80-LED Driver for keyboard E.ABG-80-LED

3_ABG80 CMP

3^ABG80 CFM

E.ABG-2 Key interrogation/LEDcontrol, E.ABG-2

3_EABG2 CMP

3^EABG2 CFM

Displayandkeyboarddriver

Any display/ASCIIterminal

Driver for character input/output

3_ETMV5 CMP

3^ETMV5 CFM

PCS Operatingconsoles

Driver for PCS Operating consoles

3_PCS CMP

3^PCS CFM

Calcula-tion

– 32-bit arithmetic 3_32BITI CMP

3^32BITI CFM

ABG-SF 3 Appendix A Software modules

9708b A-3

Page 167: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Naming the MAK files (example)

The names of the MAK files for creating drivers(Make files) can comprise e.g. the followingelements:

3_EABG.MAK /3^ETMV5.MAK

Description

3 Controller type (3 .. SF 3, 2 .. SB202, etc.)

_ or ^ _ = MAK file for creating a CMP^ = MAK file for creating a CFM

EABG orETMV5

Type of supported display orfunction of driver (ETM = Enhanced Text Module)

.MAK File from which a driver (CMP orCFM) can be created (Make File)

ABG-SF 3 Appendix A Software modules

A-4 9708b

Page 168: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Drivers for any displays (Text in the SF 3)

The software module is configured with thefunction "Create CMP for standard mode" or"Create CFM for standard mode" in the FSTdisplay editor and incorporated in a user project.

The texts entered via the FST display editor arethen an integral part of the module thus created.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>WITH <P3>WITH <P4>

Parameters

P1 = Text number (1 .. 255)P2 = Data unsigned (0 .. 65535) or

data signed (-32768 .. 32768)P3 = No. of output positions (1 .. 5)P4 = Leading character (32 .. 126)

Return parameter

P1 (FU32) = {-1} Processing successful{0} Processing not successful

P2 (FU33) = Error number (100, 101, 104)

CMP/CFM3FD_XABG.MAK/3FD^XABG.MAK

ABG-SF 3 Appendix A Software modules

9708b A-5

Page 169: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Fx.y Var_sign Value output sign mode 1)

Fx.y Busy Module transmitting text 2)

Remark: x = 0...31 Word number of flagy = 0...15 Bit number of flag

1) If flag is set, character output is with sign. Value range: Fx.y = 0 0...65535

Fx.y = 1 -32768...32767.

2) The flag is set providing text is sent to the display.

ABG-SF 3 Appendix A Software modules

A-6 9708b

Page 170: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for display FD-2/40-S (Text in ABG)

The software module is configured via "Includemodule" and incorporated in a user project.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>WITH <P3>WITH <P4>

Parameters

P1 = Text number (1 .. 999)P2 = Data unsigned (0 .. 65535) or

data signed (-32768 .. 32768)P3 = No. of output positions (1 .. 5)P4 = Leading character (32 .. 126)

Return parameter

P1 (FU32) = {-1} Processing successful{0} Processing not successful

P2 (FU33) = Error number (100, 101, 104)

CMP/CFM3FD_240S.MAK/3FD^240S.MAK

ABG-SF 3 Appendix A Software modules

9708b A-7

Page 171: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Fx.y Var_sign Value output sign mode 1)

Fx.y Busy Module transmitting text 2)

Remark: x = 0...31 Word number of flagy = 0...15 Bit number of flag

1) If the flag is set, character output is with sign. Value range: Fx.y = 0 0...65535

Fx.y = 1 -32768...32767.

2) The flag is set providing text is sent to the display.

ABG-SF 3 Appendix A Software modules

A-8 9708b

Page 172: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for display E.ABG-1 and E.ABG-80-LED (Text in ABG)

The software module is configured via "Includemodule" and incorporated in a user project.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>WITH <P3>WITH <P4>

Parameters

P1 = Text number (1 .. 255)P2 = Data unsigned (0 .. 65535) or

data signed (-32768 .. 32768)P3 = No. of output positions (1 .. 5)P4 = Leading character (32 .. 126)

Return parameter

P1 (FU32) = {-1} Processing successful{0} Processing not successful

P2 (FU33) = Error number (100, 101, 104)

CMP/CFM3FD_216S.MAK/3FD^216S.MAK

ABG-SF 3 Appendix A Software modules

9708b A-9

Page 173: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration.

Absolute Symbolic Comment

Fx.y Var_sign Value output sign mode 1)

Fx.y Busy Module transmitting text 2)

Remark: x = 0...31 Word number of flagy = 0...15 Bit number of flag

1) If the flag is set, character output is with sign. Value range: Fx.y = 0 0...65535

Fx.y = 1 -32768...32767.

2) The flag is set providing text is sent to the display.

ABG-SF 3 Appendix A Software modules

A-10 9708b

Page 174: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for keyboard ABG-1 /-EL /-VF /-LED(key interrogation and keyboard buffer)

The software module is configured via "Includemodule" and incorporated in a user project.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>

Parameters

No parameter: permitted input value 0 .. 65535P1 = maximum input value, if only P1

is transferred or P2 < P1minimum input value, if P1 < P2

P2 = maximum input value, if P1 < P2minimum input value, if P2 < P1

If the module is accessed without parametertransfer, the number sequence entered will bechecked to see if it lies between 0....65535. If aparameter is transferred during access, it willcorrespond to the maximum input value. If,however, two parameters are specified, a validvalue range will be defined for the inputs.

Return parameter

The software module does not return a parameter.

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

CMP/CFM3_EABG.MAK/3^EABG.MAK

ABG-SF 3 Appendix A Software modules

9708b A-11

Page 175: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Absolute Symbolic Comment

Fx.0 Enter E.ABG: ENTER key pressed1)

Fx.1 F1 E.ABG: F1 key pressed 1)

Fx.2 F2 E.ABG: F2 key pressed 1)

Fx.3 F3 E.ABG: F3 key pressed 1)

Fx.4 F4 E.ABG: F4 key pressed 1)

Fx.5 Clear E.ABG: clear key pressed 1)

Fx.6 Modif. E.ABG: Value changed 2)

Fx.7 Initbuff E.ABG: init if flag = 0 3)

Ry Buffer E.ABG: keyboard buffer 4)

Remark: x = 0...31 Word number of flagy = 0...127 Word number of register

1) Flags Fx.0 bis Fx.5 are set when the relevant key ispressed. The flags must be reset in the user program.

2) The flag for value modification is set if the value in thekeyboard buffer has been modified.This is the case when:– the CLEAR key is pressed (keyboard buffer

is deleted) – on of the number keys 0 to 9 is pressed.

3) The flag is set the first time the driver is accessed andwhen the test system is exited. If the flag is reset, there will be a basic initialization of the software module.

4) The value entered will be stored in this register withthe correct positions (keyboard buffer).The keyboard buffer is deleted when:– the CLEAR key is pressed– the permitted input range is exceeded or not

reached by the value entered.

Limits of the module

The software module should be accessed cycli-cally from only one program at a time. If thesoftware module receives non-defined ASCIIcodes (key codes), these will be ignored.

ABG-SF 3 Appendix A Software modules

A-12 9708b

Page 176: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for keyboard E.ABG-80-LED(key interrogation and keyboard buffer)

The software module is configured via "Includemodule" and incorporated in a user project.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>

Parameters

No parameter: permitted input value 0 .. 65535P1 = maximum input value, if only P1

is transferred or P2 < P1minimum input value if P1 < P2

P2 = maximum input value if P1 < P2minimum input value if P2 < P1

If the module is accessed without parametertransfer, the number sequence entered will bechecked to see if it lies between 0....65535. If aparameter is transferred during access, it willcorrespond to the maximum input value. If,however, two parameters are specified, a validvalue range will be defined for the inputs.

Return parameter

The software module does not return a parameter.

CMP/CFM3_ABG80.MAK/3^ABG80.MAK

ABG-SF 3 Appendix A Software modules

9708b A-13

Page 177: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Fx.0 Enter E.ABG-80: ENTER key pressed 1)

Fx.1 F1 E.ABG-80: F1 key pressed 1)

Fx.2 F2 E.ABG-80: F2 key pressed 1)

Fx.3 F3 E.ABG-80: F3 key pressed 1)

Fx.4 F4 E.ABG-80: F4 key pressed 1)

Fx.5 Clear E.ABG-80: CLEAR key pressed1)

Fx.6 Change E.ABG-80: Value changed 2)

Fx.7 Initbuff E.ABG-80: init if flag = 0 3)

Fx.12 F5 E.ABG-80: F5 key pressed 1)

Fx.13 F6 E.ABG-80: F6 key pressed 1)

Fx.14 F7 E.ABG-80: F7 key pressed 1)

Fx.15 F8 E.ABG-80: F8 key pressed 1)

Ry Buffer E.ABG-80: keyboard buffer 4)

Remark: x = 0...31 Word number of flagy = 0...127 Word number of register

1) Flags Fx.0 to Fx.5 and Fx.12 to Fx.15 are set when the relevant key is pressed. The flags must be reset inthe user program.

2) The flag for value modification is set when the value inthe keyboard buffer has been modified. This is the case when:– the CLEAR key is pressed

(keyboard buffer is deleted)– one of the number keys 0 to 9 is pressed.

ABG-SF 3 Appendix A Software modules

A-14 9708b

Page 178: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

3) The flag is set when the driver is accessed the firsttime and when the test system is exited. If the flag isreset, there will be a basic initialization of the softwaremodule (flags and registers will be reset).

4) The value entered will be stored in this register withthe correct positions (keyboard buffer).The keyboard buffer is deleted when:– the CLEAR key is pressed– the permitted input range is exceeded

or not reached by the value entered.

Limits of the module

The software module should be accessed cycli-cally from only one program at a time. If thesoftware module receives non-defined ASCIIcodes (key codes), these will be ignored.

ABG-SF 3 Appendix A Software modules

9708b A-15

Page 179: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for keyboard E.ABG-2(key interrogation and LED display)

The software module is configured via "Includemodule" and incorporated in a user project.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

Parameters

No parameter is transferred when the module is accessed.

Return parameter

The software module does not return a parameter.

CMP/CFM3_EABG2.MAK/3^EABG2.MAK

ABG-SF 3 Appendix A Software modules

A-16 9708b

Page 180: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Fx.0 F_1_key E.ABG2: F1 key pressed 1)

Fx.1 F_2_ key E.ABG2: F2 key pressed 1)

... ... E.ABG2: F... key pressed 1)

Fx.14 F15_ key E.ABG2: F15 key pressed 1)

Fx.15 F16_ key E.ABG2: F16 key pressed 1)

Fy.0 F17_ key E.ABG2: F17 key pressed 1)

Fy.1 F18_ key E.ABG2: F18 key pressed 1)

Fy.2 F19_ key E.ABG2: F19 key pressed 1)

Fy.3 F20_ key E.ABG2: F20 key pressed 1)

Fy.4 Status_OK E.ABG2: Acknowledgement status 3)

Fy.5 Send_LED E.ABG2: Update LED active 4)

Fy.8 LED_F1 E.ABG2: LED F1 key 2)

Fy.9 LED_F2 E.ABG2: LED F2 key 2)

... ... E.ABG2: LED F... key 2)

Fy.14 LED_F7 E.ABG2: LED F7 key 2)

Fy.15 LED_F8 E.ABG2: LED F8 key 2)

Fz.0 LED_F9 E.ABG2: LED F9 key 2)

Fz.1 LED_F10 E.ABG2: LED F10 key 2)

... ... E.ABG2: LED F... key 2)

Fz.10 LED_F19 E.ABG2: LED F19 key 2)

Fz.11 LED_F20 E.ABG2: LED F20 key 2)

Fz.12 Status E.ABG2: Request status 5)

Fz.13 INIT E.ABG2: Program module init 6)

Remark: x = 0...31 Word number of key flagy = 0...31 Word number of key/LED flagz = 0...31 Word number of LED flag

Table legend 1) to 6) see following page.

ABG-SF 3 Appendix A Software modules

9708b A-17

Page 181: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1) Flags Fx.0 to Fx.15 and Fy.0 to Fy.3 are set when therelevant key is pressed and reset when the key is released.

2) Flags Fy.8 to Fy.15 and Fz.0 to Fz.11 are used for controlling the LEDs. If a flag is modified, the relevantkey LED will be switched on/off.

3) If the flag is set, the software module will receive an acknowledgement of the status request (Fz.12) from the E.ABG-2 (= O.K.). The flag must be reset by the user program.

4) This flag is set providing a string for the LED Update issent.

5) When the flag is set, a status interrogation is sent tothe display. If the order to send is accepted, the software module will reset the flag again. The status request should not be cyclic but timer-controlled. In this way, the functioning of the display can be checked.

6) Setting the flag causes the module to be initialized:– the key flags will be reset– the Init sequence will be sent to the display, all the

LEDs will be switched off.– the module-internal flags for pulse edge control

will be reset– the flags for status acknowledgement and for LED

Update will be reset.Initialization will be carried out automatically:– the first time the module is accessed– when the test system is exited (CI command ‘X’)

Limits of the module

The software module should be accessed cycli-cally from only one program at a time. If thesoftware module receives non-defined ASCIIcodes (key codes), these will be ignored.

ABG-SF 3 Appendix A Software modules

A-18 9708b

Page 182: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Character input/output via the diagnostic interface (multi-commmunication module)

The software module is configured via "Includemodule" and incorporated in a user project.

The software module enables texts, variablesand control characters to be output as desired; itfurther enables texts stored in the ABG to beaccessed, any desired ASCII characters (alsoABG key codes) to be entered, as well as thevalue input for variables (multi-bit operands) viathe RS232 interface (DIAG) of the SF 3 controlblock.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>WITH <P3>WITH <P4>

Parameters

P1 = (0 .. 6) Mode of the module, 0 = Text output1 = Variable output2 = Control character output3 = Value input without timeout4 = Value input with timeout5 = ASCII character input6 = Display of ABG internal textsDescription see below

P2 .. P4 = depending on mode set with P1

CMP/CFM3_ETMV5.MAK/3^ETMV5.MAK

ABG-SF 3 Appendix A Software modules

9708b A-19

Page 183: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Return parameter

Case 1P1 (FU32) = {0} Processing successful or

valid value inputP2 (FU33) = Entered dvalue (modes 3 and 4)P2 .. Pnn = Received characters,

Special operands defined with the2nd. parameter (mode 5)

Case 2P1 (FU32) = {<>0} Processing not successfulP2 (FU33) = Error number (100, 101, 102,

103, 104), depending on mode

Operands

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Mx.y Time_out Flag for input status 2)

Mx.y Abort_Inp Flag for input abort 3)

Mx.y Var_sign Value output sign mode 4)

Rm AsciiVal Return Value of ASCII input 5)

Tn Inp_Timer Timer for input timeout 1)

TVn Inp_TPRE Timer preselect for input1)

TWn Inp_Tword Timer word-input timeout 1)

Remark: n = 0...31 Bit number of timer status/word number Timer preselect, timer word

x = 0...31 Word number of flagy = 0...15 Bit number of flagm = 0...127 Word number of register

Table legend 1) to 5) see following page.

ABG-SF 3 Appendix A Software modules

A-20 9708b

Page 184: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

1) The timer monitors the value input for a variable. If thetime preselected by program is exceeded, the flag for timeout will be set and the software module will be exited.

2) The flag will be set if the value input for a variabledoes not take place within the preselected time. If there is an error (timeout), the software module will be exited.

3) If the flag is set, the ASCII character input will beinterrupted and return will be made to the accessing program.

4) When the flag is set, character output is with sign. Value range:Fx.y = 0 0...65535Fx.y = 1 -32768...32767

5) The last or the last two ASCII characters entered willbe stored in this register; the last character in the lowbyte, the last but one in the high byte.

Description of the modes

The functioning of the module is determined bythe 1st. accessing parameter.

Depending on this, a check will be made of thepermitted number of parameters. If there is a de-viation, error message 100 will be shown.

ABG-SF 3 Appendix A Software modules

9708b A-21

Page 185: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The following modes can be set:

P1 Function Further transfer parameters

0 Text output P2 = ASCII character sequence, is output via the diagnostic interface

1 Variable outputunformatted

P2 = 0...65535 Variable value without signor = -32768...32767 Variable value with sign

Variable outputformatted

P2 = 0...65535 Variable value without signor = -32768...32767 Variable value with signP3 = 1...5 Number of positions in outputP4 = 32...126 Leading sign (optional)

2 Controlcharacter output

P2 = String parameter, maximum 27 hex. charactersin length (54 characters decimal). Two conse-cutive ASCII characters are grouped together and interpreted as a control character.

3 Value input formulti-bit operandswithout timeout

Value range of hexadecimal numbers: $0.......$FFFFValue range of negative numbers: -32768......32767Value range of positive numbers: 0....65535

4 Value input formulti-bit operandswith timeout

Value range of hexadecimal numbers: $0.......$FFFFValue range of negative numbers: -32768......32767Value range of positive numbers: 0....65535

5 ASCII characterinput

- Load ABG key codes --> No further parameters,Conclude with <CR>, Values in register "AsciiVal"

- Load ASCII character strings --> P2, P3P2 = 48...4095 Number of special operandP3 = 1...4047 Abort after number of characters

(optional)

6 Display ABGinternal texts

P2 = Number of text stored in the ABG During access string <1dh> <01h> will be sent.

ABG-SF 3 Appendix A Software modules

A-22 9708b

Page 186: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The display editor of the FST200 is not necess-ary for creating the texts and control charactersto be output. These are defined as a stringparameter when the module is accessed and arestored in the accessing program.

The parameters can always be transferred asconstants or from multi-bit operands.

Remarks

The software module can be accessed fromseveral programs at the same time, providing thevalue transferred with P1 (function) is different.

Example:Program P0 outputs a text (P1 = 0) and programP5 waits for the input of an ASCII charactersequence (P1 = 5).

If this cannot be guaranteed, a locking must beimplemented by means of flags or the programsmust use different software modules for theiraccess.

ABG-SF 3 Appendix A Software modules

9708b A-23

Page 187: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Drivers for PCS operating consoles (only in conjunction with PCSPRO planningsoftware)

The software module is configured via "Includemodule" and incorporated in a user project.

It is used for operating a parametrized PCSoperating console (parametrizing with PCSPROplanning software from Lauer) at the RS232interface (DIAG) of the SF 3 control block.

The software module is used as a connection tothe PCS during a new start or after interruptionin communication. It also controls the exchangeof data between the parametrized data field ofthe special operands of the SF 3 (256 words)and the task packages of the PCS received viathe serial interface.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>

Parameters

No parameter = ...P1 = ...

CMP/CFM3_PCS.MAK/3^PCS.MAK

ABG-SF 3 Appendix A Software modules

A-24 9708b

Page 188: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Return parameter

Case 1P1 (FU32) = {0} ...P2 .. Pnn = ...

Case 2***P1 (FU32) = {<> 0} Processing not successful***P2 (FU33) = Error number (100, 101, 102, 103,

104), depending on mode

Operands

The following operands are used internally in themodule and must be specified during configura-tion of the module.

Number of repeats (1..255)If an incorrect data package is received, the datawill be requested again. Specify the maximumnumber of requests (1..255). When a correctdata package is received, counting will start fromthe beginning. If the maximum number ofrepeats is exceeded, there will be an interruptionin communication.

Timeout (0.6 s bis 2.55 s)During communication of the PCS with the SF 3,there is a continuous exchange of data. Thetimeout time is the monitoring time betweensending the reply telegram from the SF 3 andreceiving a new task package from the PCS.The input value can be selected between 60 and255.The timeout time is calculated from this: i.e. inputvalue x 10ms, so that times between 0.6 s and2.55 s can be specified (default value 0.6 s).If there is an error (timeout), a restart must becarried out.

ABG-SF 3 Appendix A Software modules

9708b A-25

Page 189: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The following operands are used by the softwaremodule and are entered in the allocation listduring configuration:

Absolute Symbolic Comment

Fx.y PCS_Init PCS Init flag 1)

FEn PCS_Start PCS_data (start address) 2)

Remark: x = 0...31 Word numbery = 0...15 Bit number of flagn = 48...3840 Word number of special operand

1) Flag for initializationThe selected flag bit is a summarized error bit which reflects the communication status. If this bit = 1, data exchange will be stopped. Communication is restored successfully when the module is accessed with parameter 0, providing the bit is reset.

2) Assigning special operands (FU48 to FU3840)The basis address of the data word range, which the SF 3 of the PCS operating console provides, is determined here (default value FU48). The following 256 words are always firmly assigned.

ABG-SF 3 Appendix A Software modules

A-26 9708b

Page 190: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Description

The configured software module has beendesigned for both initialization and the cyclicexchange of data with the PCS operatingconsole. The different methods of operation aredetermined by the parameter transfer (seeParameter transfer). As regards data exchange,the PCS operating console is the master; the SF3 is the slave. The operating console sendsorders (task packages) to the SF 3 whichprocesses them and sends back replay data tothe PCS.

In order to maintain this exchange of data, it isnecessary to access the software module cycli-cally. Only at the start of communication is theSF 3 the master. It sends the reset telegramwhich opens communication after a restart of theSF 3 or after an interruption in communication.

The task packages are formulated by the PCS,whereby the necessary operations (write, read,or and and) refer to the configured range of thespecial operands. The actually necessary data istransferred, whereby the amount of data isreduced.

The software module is exited again immediatelyafter each access, in order that the accessingprogram can be processed further.

ABG-SF 3 Appendix A Software modules

9708b A-27

Page 191: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Parameter transfer and error messages

The configured software module permits twotypes of access:

Variant 1Access with an input parameter: P1 = 0Connect to PCS, send reset telegram, accessafter SF 3 restart or after interruption incommunication.

Output: Parameter

FU32 = 0 Connection successfulFU33 = 0

or FU32 <> 0 Status message (see below)FU33 = 0

or FU32 = 0FU33 = Error number

(red error LED on)100 = Number of parameters

incorrect101 = Error in parameter 1

Variant 2Access without input parameter. This controlsthe exchange of data between the configureddata field of the special operands (256 words)and the task packages received via the serialinterface.

ABG-SF 3 Appendix A Software modules

A-28 9708b

Page 192: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Output:Parameter

FU32 = 0 Processing successfulFU33 = 0

or FU32 <> 0 Status message (see below)FU33: Number of repeat requests

or FU32 = 0FU33 = Error number

(red error LED on)100 = Number of parameters incorrect

Status message:

Bit Status

0 Parity errorTransmission fault, Order not processed

2 OverrunTransmission fault, Order not processed

3 BCC telegram faultTransmission fault, Order not processed

4 TimeoutCommunication interruption, No connection

15 Initphase not yet concluded.

Application example

Program extract STL

IF PCS_Init ’PCS Init flagTHEN CMP 0 ’Driver for PCS...

WITH V0 "ConnectionOTHERWISE CMP 0 ’Driver for PCS...

ABG-SF 3 Appendix A Software modules

9708b A-29

Page 193: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Driver for 32-bit arithmetic(4 basic types of calculating)

The software module is configured via "Includemodule" and incorporated in a user project.

The driver can be used everywhere where theaccuracy of the standard integer arithmetic with16 bits is not sufficient. The 4 basic types ofcalculating: addition, subtraction, multiplicationand division are provided. The valid numberrange is 0 to +4294967295.

Entry format (STL)

THEN CMP {00 .. 15}(or CFM {90 .. 99})

WITH <P1>WITH <P2>WITH <P3>WITH <P4>WITH <P5>

Parameters

P1 = Operand 1 low (16 bits)P2 = Operand 1 high (16 bits)P3 = Function of module (1 .. 4)

1: Addition2: Subtraction3: Multiplication4: Division

P4 = Operand 2 low (16 bits)P5 = Operand 2 high (16 bits)

The parameters P1/P2 as well as P4/P5 each receivea 32-bit value (0 to + 4 294 967 295)

CMP/CFM3_32BITI.MAK/3^32BITI.MAK

ABG-SF 3 Appendix A Software modules

A-30 9708b

Page 194: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Return parameter

Case 1P1 (FU32) = {0} No error

{21} Overrun subtraction{41} Overrun multiplication{51} Division by 0

With overrun addition: always 0 ! --> Check FU35 FU35 {0} Overrun addition

P2 (FU33) = Result low (if no overrun)P3 (FU34) = Result high (if no overrun)

Parameters P2/P3 contain together the result as a 32-bit value (0 to + 4 294 967 295)

Case 2P1 (FU32) = {<> 0} Processing not successful P2 (FU33) = Error messages 100, 103(specified function is not supported)

Entries in the allocation list

No entries are made in the allocation list duringconfiguration of the module.

ABG-SF 3 Appendix A Software modules

9708b A-31

Page 195: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Description

The representation of the operands transferredas parameters when the module is accessedcorresponds to a 32-bit value.

Operand high Operand low

Bit 31 23 15 7 0

7 0 7 0 7 0 7 0

MSB (highest value bit) LSB (lowest value bit)

Processing times

Operation Processing time (max. value)

Addition 120 µs

Subtraction 120 µs

Multiplication 120 µs

Division 140 µs

The processing times specified are maximumvalues (typical values are approx. 25% less) andinclude the complete module access.

ABG-SF 3 Appendix A Software modules

A-32 9708b

Page 196: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Application examples

Example 1:Addition of the 32-bit values in the register pairsR1:R0 and R3:R2 (high:low), store the result inregister pair R11:R10 (high:low)

CMP 0 ’32-bit arithmeticWITH R0WITH R1WITH V1 "AdditionWITH R2WITH R3

IF FU35 "Interrogate for "overrun

= V0 "(work around)THEN LOAD FU33 "Result is valid

TO R10LOAD FU34

TO R11..

OTHRW JUMP TO overflow "Overflow

The interrogation for overrun with the additionhas been modified in accordance with the errordescription (see Remarks).

1. Summand 2. Summand Status Sum

R1 R0 R3 R2 FE32 FE35 FE34 FE33

0001 hex AEF0 hex 0001 hex 6058 hex 0 hex 0000 hex 0003 hex 0F48 hex

110 320 dec. 90 200 dec 0 0 200 520 dec

R1 R0 R3 R2 FU32 FU35 FU34 FU33

7D2B hex 7500 hex 8321 hex 5600 hex 1 hex*) 0001 hex 004C hex CB00 hex

2 100 000 000 dec. 2 200 000 000 dec 1*) 1 4 300 000 000 dec

*) In the case of software modules created with the enclosed MAK files as fromFST200 software version 3.2 - Revision 8 (as at 8/97) the overrun is showncorrectly in FU32. In earlier versions there is no error output via FU32 <> 0 in the case of overrun with the addition. Therefore FU35 must be checked here. (see Remarks)!

ABG-SF 3 Appendix A Software modules

9708b A-33

Page 197: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Example 2: Multiplication of the 32-bit values in the registerpairs R1:R0 and R3:R2 (high:low), store theresult in register pair R11:R10 (high:low)

CMP 0 ’32-bit arithmeticWITH R0WITH R1WITH V3 "MultiplicationWITH R2WITH R3

IF FU32 "Overrun ?= V41

THEN JUMP TO overfl OTHRW LOAD FU33 "Result is valid

TO R10LOAD FU34 TO R11

Multiplicand Multiplicator Status Product

R1 R0 R3 R2 FE32 FE35 FE34 FE33

0000 hex A7F8 hex 0000 hex 0064 hex 0 hex 0000 hex 0041 hex 9CE0 hex

43 000 dec. 100 dec 0 0 4 300 000 dec

R1 R0 R3 R2 FU32 FU35 FU34 FU33

0000 hex A7F8 hex 0000 hex 03E8 hex 0 hex 0000 hex 0290 hex 20C0 hex

43 000 dec 1000 dec 0 0 43 000 000 dec

R1 R0 R3 R2 FU32 FU35 FU34 FU33

0000 hex A7F8 hex 0000 hex 2710 hex 0 hex 0000 hex 19A1 hex 4780 hex

43 000 dec 10000 dec 0 4 30 000 000 dec

R1 R3 FU32 FU35 FU34 FU33

0000 hex A7F8 hex 0001 hex 86A0 hex 29 hex 0001 hex 004C hex CB00 hex

43 000 dec 100 000 dec 41 dec 1 4 300 000 000 dec

ABG-SF 3 Appendix A Software modules

A-34 9708b

Page 198: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Remarks

If you create the software module for the 32-bitarithmetic from a MAK file which was suppliedwith FST200 software before version 3.2 -revision 8 (at at 8/97), the overrun is not outputin FU32 (<> 0) during addition. Therefore FU35must be checked here.

Workaround: Instead of the missing output of the overrun, anoverrun can be ascertained by evaluation of thereturn parameter FU35.

FU35 = 0: No overrunFU35 <> 0: No overrun

ABG-SF 3 Appendix A Software modules

9708b A-35

Page 199: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ABG-SF 3 Appendix A Software modules

A-36 9708b

Page 200: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Appendix B

Technical Appendix

ABG-SF 3 Appendi B Technical Appendix

9708b B-1

Page 201: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ContentsSettings on the display and operating units . . . . . . . . . . . . . . . . . . . . . . B-3

Connecting cable . . . . . . . . . . . . . . . . . . . . B-4Connecting cable SF 3 - ABG . . . . . . . . . . . B-4Connecting cable between PC and ABG . . B-5Connecting cable between computer anddisplay with 9-pin serial interface. . . . . . . . . B-6Connecting cable for EPROM programming. . . . . . . . . . . . . . . . . . B-6Connecting cable PCS - SF3. . . . . . . . . . . . B-7

Error messages . . . . . . . . . . . . . . . . . . . . . . B-8

Definitions of terms . . . . . . . . . . . . . . . . . B-15

ABG-SF 3 Appendix B Technical Appendix

B-2 9708b

Page 202: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Settings on the display and operating units

Before operating the ABG, make sure that theinterface settings correspond with those on theSF 3.

Interface:

– RS232 (V.24),

– Baud rate 9600,

– Full duplex mode

– 1 start bit, 8 data bits, No parity, 1 stop bit(9600, N, 8, 1)

Recommendation: Also set the ABG to "Textinput/output" (interactive operating mode).

Information on setting the ABG can be found inthe description supplied with the ABG.

ABG-SF 3 Appendi B Technical Appendix

9708b B-3

Page 203: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Connecting cable

Connecting cables are required for data transferbetween the various units.

Special connecting cables, which are not in-cluded in the Festo delivery program, must bemade or ordered by the user. The pins which areto be connected are shown in the relevantillustration.

Connecting cable SF 3 - ABG

ABG type Connecting cable Order no.

E.ABG-1, E.ABG-80-LED

E.KA1S2-K (9-pin) or E.KABG-SB202-ST9

269 112150 288

E.ABG2, E.FD-2/40-S

E.KA2S2-K (25-pin) 269 113

PCS See section "Connectingcable PCS - SF3"

Any display or ASCII terminal

Connection to PCdepends on ABG used.

ABG-SF 3 Appendix B Technical Appendix

B-4 9708b

Page 204: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Connecting cable between PC and ABG

Connecting cable between computer and displaywith 25-pin serial interface

Fig. B/1: Connecting cable PC (9-pin) - ABG(9-pin)

Fig. B/2: Connecting cable PC (25-pin) - ABG(9-pin)

ABG-SF 3 Appendi B Technical Appendix

9708b B-5

Page 205: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Connecting cable between computer anddisplay with 9-pin serial interface

Connecting cable for EPROM programming

Use a cable in accordance with the specification-s for the EPROM programmer.

Fig. B/3: Connecting cable PC (25-pin) - ABG(25-pin)

ABG-SF 3 Appendix B Technical Appendix

B-6 9708b

Page 206: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Connecting cable PCS - SF3

4-pin screened

Outer diameter 4.5-6.5 mmØcores 0.14 mm

e. g. LIYCY 4x0.145 m

25-pin plug as per DIN 41 652,with screened housing

Plug connector, Binder,series 713, Order no.09-0430-10-04

R x D

T x D

GND

Screening/shield

white

yellow

brown

Fig. B/4: Connecting cable PCS - SF3

ABG-SF 3 Appendi B Technical Appendix

9708b B-7

Page 207: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Error messages

Due to their briefness the error messages of thedisplay editor cannot give detailed information onthe causes of errors and how to rectify them.The error messages have therefore been listedalphabetically in this section with individualexplanations. These give instructions on thecauses of the errors and how to rectify them.

Display file is empty

CAUSE: You have activated a function (e.g. burnEPROM) which is of no significance for the fileselected as it has no contents. You haveprobably selected an incorrect file.

REMEDY: Select a different file.

File too long. Delete something.

CAUSE: The display file which you have createdrequires more memory space than the memorycapacity allowed by the display for which it wascreated.

REMEDY: Delete superfluous texts or controlcharacters.

Filename may only be used as a function module.

CAUSE: You wish to create a program modulefor standard operation (create CMP). The fileselected was created for a display which doesnot permit this operating mode.

REMEDY: After activating the function CreateCMP, select a file which was created for adisplay which permits this operating mode.

ABG-SF 3 Appendix B Technical Appendix

B-8 9708b

Page 208: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Invalid field bus address.Value must be 2 or 4.

CAUSE: You have specified a non-permittedaddress for the field bus module.

REMEDY: Only the addresses 2 or 4 arepossible. Enter 2 or 4.

Invalid field bus participant address. Range is 01 to 99.

CAUSE: You have entered a non-permittedslave number for the display.

REMEDY: Only one slave number in the range1 to 99.

Load display RAM via field bus not possible with this display.

CAUSE: After activating the function Load dis-play RAM (field bus) you selected an incorrectfile. This file was created for a display type withwhich loading via the field bus is not possible.

REMEDY: Select a file which was created forfield bus operation.

Load display RAM via V24 not possible with this display.

CAUSE: After activating the function Load dis-play RAM (V.24) you selected an incorrect file.This file was created for a display type withwhich loading via the V.24 interface is notpossible.

REMEDY: Select a file which was created for adisplay with V.24 interface.

ABG-SF 3 Appendi B Technical Appendix

9708b B-9

Page 209: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

MAK file does not available.

CAUSE: You want to create a module. Thedisplay driver required for this (*.MAK) is not inthe library directory (LIB).

REMEDY: Import the required display driver intothe LIB directory.

MAK file not installed

CAUSE: You want to create a module forstandard operation. The display driver requiredfor this (*.MAK) is not entered in the library file(ANZED.BIB). Either standard operation for theselected display type is not possible or the driveris not yet available at the time of softwarecreation.

REMEDY: Check whether the current version ofthe display editor is installed in your computer.Perhaps you have simply selected an incorrectfile during module creation.

Module ?? / CPU ? already exists in the project directory. Overwrite?

CAUSE: When creating the module, you se-lected a module and CPU number which alreadyexists.

REMEDY: Enter Y if you wish to overwrite theexisting module. OR: Enter N for No and selecta different module or CPU number.

ABG-SF 3 Appendix B Technical Appendix

B-10 9708b

Page 210: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

No display files available.

CAUSE: You have activated a function which isfollowed by the file selection (e.g. Delete file).However, the active project does not contain anydisplay files. File selection cannot therefore beoffered.

REMEDY: Check whether the correct project isactive. OR: Create a file for the current project.

Project does not exist.

CAUSE: You have started the display editorwithout activating a project in the FST software.The display editor must know the project forwhich you wish to create display files.

REMEDY: Select a project with the FST softwareor create a project.

Text exists already. Overwrite ?

CAUSE: You want to copy a marked text into atext number for which text already exists.

REMEDY: Enter Y for Yes if the text is to beoverwritten. OR: Enter N for No in order to stopthe copy procedure.

ABG-SF 3 Appendi B Technical Appendix

9708b B-11

Page 211: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The file specified is not a FESTODISPLAY FILE

CAUSE: Every display file receives a mark. Youhave selected a display file (*.ANZ) in which thisnecessary identifier cannot be found. The file isprobably damaged.

REMEDY: You can only remedy this if you arefamiliar with the operating system. As a safetycopy with the file extension ".BAK" is storedwhen a display file is saved again, there isprobably also a safety copy of your damagedfile. Delete the damaged file with the aid of theoperating system.

PLEASE NOTE If you delete the file with the display editor, thesafety copy will also be deleted. When the filehas been deleted, you can rename the safetycopy of the file with the aid of the operatingsystem. Give the file the same file name, butwith the file extension .ANZ. Check whetherthe desired function is possible with this file.

ABG-SF 3 Appendix B Technical Appendix

B-12 9708b

Page 212: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

The last text overwritten (overrun). Insert anyway?

CAUSE: You want to enter a new text number inthe display file. All subsequent text numbersmust therefore be increased by 1. As text hasalready been entered for the maximum textnumber and the number cannot be increased,this text will be lost as a result of the insert.

REMEDY: Enter Y for Yes if you wish to inserta text number and if the text with the maximumtext number is to be deleted. OR: Enter N for Noand first delete a non-required text numberbefore you insert a new text number.

There is no project selected.

CAUSE: You have started the display editorwithout previously activating a project in the fSTsoftware. The display editor must know theproject for which you wish to create display files.

REMEDY: Select the desired project beforestarting the display editor.

Too many files

CAUSE: By creating a new display file, you haveexceeded the maximum permitted number ofdisplay files for the current project. You cannotcreate more than 127 display files.

REMEDY: Delete a display file no longerrequired from the current project before creatinga new file.

ABG-SF 3 Appendi B Technical Appendix

9708b B-13

Page 213: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Unknown display type

CAUSE: You want to work with a display filewhich was created for a display type which is notentered in the library file (ANZED. BIB). The filewas probably created on a different computer onwhich a later version of the library file is stored.

REMEDY: Install the version of the display editorwith which the display file was created.

You cannot burn an EPROM for this display.

CAUSE: After activating the function BurnEPROM, you selected a file which was createdfor a display which does not permit EPROMoperation.

REMEDY: Select a file which was created for adisplay which permits EPROM operation.

ABG-SF 3 Appendix B Technical Appendix

B-14 9708b

Page 214: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

Definitions of terms

In the individual sections terms are often usedwhich are product-related and therefore notfamiliar to everybody. These terms are explainedin this section.

Baud rate (bits per second) The speed of transmission in the data transferbetween communicating systems. The baud ratespecifies the number of bits which can beetransmitted per second. Common baud rates are75, 150, 300, 600, 1200, 2400, 4800, 9600,19200 Baud.

Configuration The combination of various devices into asystem. When used with software these must beadapted to the system (configured), in order toguarantee reliable data communication.

Display driverDisplay drivers are rough modules. From theserough modules program modules arecreatedwhich permit text output. They are speciallyadapted to the operating mode and the hardwareconfiguration used.

Edge detectionA check which takes place before a text is outputwithout a variable. By comparing the text numberand the module number, a check is made to seeif the text to be output is the same as the lastoutput text.

EditorThe background program with which you createe.g. control programs or enter texts is refered toas the editor. An editor provides the necessaryfunctions and is adapted exactly to its task.

ABG-SF 3 Appendi B Technical Appendix

9708b B-15

Page 215: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

EPROM (erasable programmable read onlymemory) A memory which can only be erased with UVlight and which is fault resistant. It can be writtenagain with a special programmer. With someFesto displays you have the possibility of usingsuch memory modules.

Field bus Serial bus system which connects physicallyseparated parts of a procedure or technicalmanufacturing process for the purpose of ex-changing information. Sensors and actuators canbe connected to decentralized stations in thisprocess.

Field bus module This enables field bus slaves to be connected toa control system.

ProgramA program is an individual control task in theFST software. Several programs can form aproject.

ProjectIn the FST software, a project is the groupingtogether of several programs and programversions with a higher-order documentation.When a project is created, the FST softwarecreates a directory. All programs and filesbelonging to the project are stored in thisdirectory.

ABG-SF 3 Appendix B Technical Appendix

B-16 9708b

Page 216: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

RAM (random access memory) A memory with random access. Data stored insuch a memory can be read, modified anddeleted by computers. If the power supply isswitched off, all stored data will be lost unlessbattery backup is provided.

RS232 interfaceA standardized serial interface which can beused in many situations. It can be used e.g. toconnect a compuuter or a controller with periph-eral devices such as a text display.

Sign detection The sign determines the type of representationor the value range of variables when they areoutput. If the sign detection is activated, thevariable value will lie in the range from -32768 to+32767. If the sign detection is inactive, thevalue will lie in the range from 0 to 65535.

Window A window is a fixed limited range of the screenin which special instructions or messages areshown.

ABG-SF 3 Appendi B Technical Appendix

9708b B-17

Page 217: 744 GB 9708b AAAA AAAA AA AA A A AA A AA A AA A AAAA AAAA AA AA AA A AA A A ABG-1 ABG-2 ABG-80-LED FD-2/40-S Festo Software Tools Display and operation …

ABG-SF 3 Appendix B Technical Appendix

B-18 9708b