Manual for creating PLC for control systems MEFI
All chapters of PLC manual can be downloaded in pdf format. Click on to selected chapter to open appropriate pdf file in a new window.
Complete manual for creating PLC for download
CZ | ENG |
![]() |
![]() |
Content
1. INTRODUCTION (CZ)
2. HARDWARE AND SOFTWARE OF SYSTEM CNC8x9 (CZ)
2.1. Selected technical parameters 2-1
2.2. System architecture CNC8x9 - DUAL 2-3
3. BASIC INSTRUCTION - LANGUAGE PLC836 (CZ, ENG)
3.1. Writing of source program 3-1
3.2. Working registers of PLC836 language 3-2
3.3. Memory allocation 3-2
3.4. Definition of memory bit, byte, word and constant 3-3
3.5. Logic operations with memory bits and RLO 3-4
3.6. Principle of stack and end instructions 3-5
3.7. Writing bits to memory 3-8
3.8. Program branching 3-10
3.9. Type redefining in data variables 3-11
3.10. Memory read and write from data register DR 3-13
3.11. Implementation of time dependent functions 3-15
3.12. Arithmetical operation with operands and DR register 3-18
3.13. Nonoperand instruction for working with DR register 3-20
3.14. Logic instructions with operands and DR register 3-22
3.15. Conversion and register and memory shifts 3-24
3.16. Conditional blocks 3-25
3.17. Procedures 3-26
3.18. Working with text strings 3-27
3.19. Auxiliary statements 3-30
4. LOGIC SEQUENTIAL MODULES (CZ, ENG)
4.1. Structuring of PLC program 4-1
4.2. Instructions for logic sequential modules 4-3
4.3. Basic rules of mechanisms 4-6
5. STRUCTURE OF PLC PROGRAM (CZ, ENG)
5.1. Auxiliary statements 5-1
5.2. PLC836 language modules 5-1
5.3. Description of modules 5-4
5.4. Control of interface supervisor call 5-8
5.5. More files for writing PLC program 5-8
6. ASSEMBLY OF PLC PROGRAM, ASSEMBLER TECHNOL (CZ)
6.1. Assembling ways of PLC program via BORLAND and MEFI software 6-2
6.2. Boot program for processor CPU04 (80486DX) 6-4
6.3. Boot program for systems series DUAL - CNC8x9 6-8
6.4. Allocation ways of PLC program for CPU04 6-11
6.5. Serial transmission of PLC program during debugging 6-13
7. DEBUGGING OF PLC PROGRAM (CZ)
7.1. Debug instructions 7-1
7.2. Modifying and control of PLC program 7-2
7.3. Debugging of PLC program 7-3
7.4. Debugger INTDEBUG 7-5
7.4.1. Plaque creating 7-5
7.4.2. Reading of plaque 7-5
7.4.3. Stage tracing 7-5
7.4.4. Tracing 7-5
7.4.5. Orientation of debugger in the PLC program map 7-6
8. INTERFACE CNC SYSTEM - PLC PROGRAM (CZ)
8.1. Module "INCLEXT" 8-3
8.2. Variables declared in module "INCLEXT" 8-3
8.2.1. Machine constants for PLC 8-3
8.2.2. Measuring and difference 8-3
8.2.3. Spindle rotation with regards to %S 8-4
8.2.4. System panel inputs CNC836 8-5
8.2.5. System key extension with machine panel 8-5
8.2.6. Mode and system keys 8-5
8.2.7. External speed setting in auxiliary hand travels 8-6
8.2.8. Auxiliary variables 8-6
8.3. Important bit variables for PLC program 8-7
8.3.1. Move permission from PLC (BZH08PI) 8-8
8.3.2. Axis moving (PB20PI) 8-9
8.3.3. Move direction (PB20PIS) 8-9
8.3.4. Switch on and switch off of position feedback 8-10
8.3.5. Spindle orientation 8-11
8.3.6. Axis displaying control in indication 8-11
8.3.7. Mode modification option - information bits AUT 8-12
8.3.8. Move permission for auxiliary manual travels (BZH08MAN) 8-12
8.3.9. Auxiliary manual travels- information bits (CONT_AUTMAN) 8-12
8.3.10. Bits for external control of auxiliary manual travels 8-12
8.4. Statement block 8-12
8.4.1. Common rules for statement block 8-12
8.4.2. Statement block-list of signals 8-13
8.4.3. List of applied M functions group ordered 8-16
8.4.4. Bit variables in statement block applies by interface supervisor 8-17
8.4.5. System mode information in statement block 8-18
8.4.6. BCD functions in statement block 8-22
8.4.7. Decoded functions in statement block 8-24
8.4.8. Alteration signals in statement block 8-26
8.4.9. Extended interface of statement block 8-28
8.5. Block of reverse reports 8-30
8.5.1. Block of reverse reports - list of signals 8-33
8.5.2. Description block of reverse reports signals applied by interface supervisor 8-33
8.5.3. Important control functions of block of reverse reports 8-38
8.5.4. Limit, deceleration and reference switches 8-38
8.5.5. Byte values in block of reverse reports 8-41
9. CONTROL OF BINARY INPUTS/OUTPUTS IN CNC836 SYSTEM FRAME (CZ)
9.1. Binary inputs and outputs in system frame for standard series CNC8x6 9-1
9.2. Inputs and outputs addresses for standard system series CNC8x6 9-4
9.2.1. Output unit OUT02 9-4
9.2.2. Output unit OUT05 9-5
9.2.3. Input unit IN02 9-6
9.2.4. Multiplexed inputs unit IN03 9-7
9.3. Binary inputs and outputs for systems series DUAL - CNC8x9 9-9
9.3.1. Application of external peripheral units INOUT07 for systems series DUAL 9-9
9.3.2. Reading of machine matrix inputs by unit INOUT07 9-10
9.3.3. Binary inputs and outputs in units INOUT07 9-11
9.3.4. Error handling in external peripherals INOUT07 9-15
9.3.5. Control of fast reaction outputs for units INOUT07 9-21
9.4. Binary CAN-BUS input-output peripherals 9-25
9.4.1.CAN channel configuration for inputs-outputs 9-25
9.4.2. Binary input-output of INOUT08 unit 9-26
9.4.3. Error management of INOUT08 external peripherals 9-30
9.4.4. Shared access of CAN channel 9-34
9.4.5. Operation of CAN-BUS peripherals 9-37
9.4.6. Direct PLC communication using SDO packets 9-40
9.4.7. INOUT08 description 9-44
9.4.8. CAN-BUS
peripherals diagnostic 9-50
9.4.9. CanView diagnostic 9-53
9.4.10.Diagnostic test keyboard 9-54
10. MACHINE PANEL AND READING OF SYSTEM KEYS (CZ)
10.1. System panel keys reading to PLC 10-1
10.2. Machine panel connection for extension of
system keys for standard systems series CNC8x6 10-2
10.3. Auxiliary system inputs and outputs in system
panel of CNC836. Machine panel connected to auxiliary inputs 10-5
10.3.1. Application of peripheral unit INOUT02 10-5
10.3.2. Application of peripheral units INOUT07 10-6
10.4. System panel key reading for extended type keyboards ($R) 10-9
11. REMOTE CONTROL MODES FOR CNC SYSTEMS FROM PLC (CZ)
11.1. System control by key sequences, mode options,
format options and menu structures 11-1
11.2. System control by interface CNC - PLC 11-5
11.2.1. Setting of pseudoreference 11-5
11.2.2. Canceling of reference 11-5
11.2.3. Travel control 11-6
11.3. Switching modes "indication - NC" in system CNC836 11-6
11.3.1. Switching whole system to mode "INDICATION" 11-6
11.3.2. Coordinates which are permanently in mode "INDICATION" 11-8
11.4. Travel control by pots 11-8
12. CONTROL DESCRIPTION OF ROTARY AXIS CONTROL REGULATOR DRIVES AND SPINDLES IN CNC SYSTEM (CZ)
12.1. Definition of terms, addressing 12-1
12.2. Control principles of "ordinary spindles" 12-2
12.3. Control principles of "rotary axis" 12-3
12.3.1. Using of two rotary coordinates 12-9
12.4. Setting of spindle revolution 12-9
12.4.1. Spindle revolution control by %S 12-11
12.4.2. Setting of value by ramp 12-12
12.5. Setting of inner increment for rotary coordinate
12-13
12.6. Adaptive filter for sensing spindle revolution 12-16
12.6.1. Setting of filter adaptability parameters
12-17
12.6.2. Setting of parameter for averaging minimal samples
12-17
12.6.3. Setting of inner increment for adaptive filter
12-18
12.6.4. Dynamic control of adaptive filter 12-18
13. SETTING OF SERVO PARAMETERS AND ITS CONTROL BY PLC PROGRAM
(CZ)
13.1. Sets of regulator parameters 13-1
13.2. Summary of regulator parameters 13-2
13.3. Setting or cancellation of slide velocity control circuit "P1" 13-4
13.4. Implementation of I-regulator "P2" 13-5
13.5. Setting of velocity feedback loop gain "K2"
13-6
13.6. Setting of proportional gain "K3" 13-7
13.8. Setting of integral constant "K4" 13-8
13.9. Implementation of limited slide control "K5" 13-9
13.10. Implementation of 32 bit differential counter "K6" 13-10¨
13.11. Slide limit setting "LIM" 13-11
13.12. Setting of constant of speed reading "Ks" 13-12
13.13. Proportional part of feedforward "Kf"
13-14
13.14. Derivative part of feedforward "Kd" 13-16
13.15. Frequency band filter 13-18
13.16. Setting of position feedback raster 13-19
13.17. Application of units SU02 13-19
13.18. Application of units SU04,SU05 13-21
13.18.1. General description 13-21
13.18.2. Description of machine constants for setting of units SU04
13-22
13.18.4. State diagnostic of SU04 units 13-26
13.19. Drives connected by CAN-BUS in mode "trajectory
control" 13-27
13.19.1. Basic configuration of CAN-BUS 13-28
13.19.2. Coordinates setting for CAN-BUS "trajectory control"
13-29
13.19.3. Interface for PLC program 13-32
13.19.4. Error messages 13-33
13.20. Drives connected by CAN-BUS in mode "speed
control" 13-35
13.20.1. Outputs setting for drives CAN-BUS "speed control"
13-36
14. ERROR MESSAGES, WARNINGS AND INFORMATION MESSAGES IN PLC PROGRAM (CZ)
14.1. Fatal error messages in PLC program 14-2
14.2. Warnings and other messages 14-3
14.3. Error quitting 14-4
14.4. Information messages in PLC program 14-5
14.5. Text messages in event log 14-8
14.6. Text assigning for error and information messages 14-10
14.7. System errors 14-13
14.8. Files with recode tables 14-14
15. DISPLAY CONTROL AND MENU STRUCTURE CREATING (CZ)
15.1. PLC screens 15-1
15.1.1. Data dynamic transmission to PLC screens from
PLC program and their activation 15-2
15.1.2. Prefix creating for PLC screen 15-4
15.2. PLC menu structures 15-11
15.2.1. Presetting and activation PLC menu from PLC program 15-11
15.2.2. Reading of software keys in PLC menu 15-11
15.2.3. Creating of PLC menu 15-12
15.3. Displaying of state information by PLC 15-13
15.3.1. Data transmission for state displaying from PLC 15-13
15.3.2. Setting of state information display features
15-13
15.4. Screens creating and control TECHPLC 15-15
15.4.1. TECHPLC of screen 15-15
15.4.2. Script for creating of TECHPLC screen 15-16
15.4.3. Screen partition 15-17
15.4.4. Setting of screen prefix features 15-18
15.4.5. Setting features for line, frame and area drawings
15-20
15.4.6. Setting features of displayed data 15-22
15.4.7. Parameters for output data 15-22
15.4.8. Parameters for input data 15-24
15.4.9. Input and output arrays 15-26
15.4.10. Picture drawing 15-29
15.4.11. Parameters for picture drawings 15-30
15.4.12. Picture format 15-31
15.4.13 Display control 15-33
16. MOBILE KNOB WITH CONTROL (CZ)
16.1. Mobile knob operation 16-1
16.2. Key codes for mobile knob 16-2
16.3. Mobile knob design in PLC program 16-2
17. USEFUL EXAMPLES OF PLC PROGRAM (CZ)
18. DESIGN SOLUTION OF AUTOMATIC TOOL CHANGE IN PLC PROGRAM
(CZ)
18.1. Design solutions of automatic tool change 18-1
18.2. Backup memory area LABEL_MEM 18-1
18.3. Mapping in backup area LABEL_MEM 18-2
18.4. Using address indexing in memory area LABEL_MEM
18-2
18.5. Display PLC and menu structure PLC for tool change
18-3
18.6. Technological tables 18-4
18.7. Syntax rules for technological table creating
18-5
18.8. Backup memory area TAB_TECHNOL 18-6
18.9. Modifying and backup of memory area TAB_TECHNOL
18-7
18.10. Data transmission from PLC program to NC tables 18-8
18.11. Switch on and shutdown of systems series CNC8x9-DUAL 18-10
18.12. UPS with serial channel 18-12
19. POSITION UNIT (CZ)
19.1. Principle of position unit 19-1
19.2. Record of state and control bits of position unit
19-2
19.3. Control instruction for position unit 19-3
20. AUXILIARY MANUAL TRAVELS (CZ)
20.1. General description 20-1
20.2. Setting of auxiliary manual travels 20-2
20.3. Operation of auxiliary manual travels 20-3
20.4. Bit signals for PLC program 20-4
20.4.1. Basic bit signals 20-4
20.4.2. Information bit signals 20-5
20.4.3. Bits for external control of auxiliary manual travels 20-5
20.5. Some control possibilities from PLC program 20-6
20.5.1. Control example, when all coordinates are permanently in position feedback 20-6
20.5.2. Control example for 1 axis with clamping and without manual knob panel 20-7
20.5.3. Example of two axis control with common drive 20-7
20.5.4. Example of treating of block stop and block start for AUTMAN 20-8
20.6. Independent path shift (SHIFT) 20-9
21. ANALOG INPUTS AND EXTERNAL POTS (CZ)
21.1. Application of KLA40 unit for two pots 21-1
21.2. Application of AINP02 units 21-2
21.2.1. Configuration of AINP02 units 21-2
21.2.2. Pots standardize 21-4
21.2.3. Diagnostic of analog inputs 21-5
21.2.4. Temperature compensation 21-7
22. USER INSTRUCTION AND MACROS CREATING (CZ)
22.1. Linking of external definition files 22-1
22.2. Definition of user instruction and macros 22-2
22.3. Formal parameters and local macro symbols 22-3
22.4. User instruction control 22-6
23. APENDIX (CZ)
23.1. Transformation of coordinate system
23.2. Manual control of inputs and outputs
23.3. Second group of trailing axis
23.4. Control percent S from PLC program
23.5. Time and date for PLC program
23.6. Sleep mode and switch to Windows98
23.7. Solution for cutting press
23.8. Storage oscilloscope
23.9. Teach mode "TEACH-IN"
23.10. Connecting of serial knobs
23.11. Connecting and operating of CAN-BUS
24. LANGUAGE PLC836 - REFFERENCE DICTIONARY (CZ)