PDK 204979 Software Aipex Pro v3 en
PDK 204979 Software Aipex Pro v3 en
Software description
AIPEX PRO V3
AFL AMKmotion function libraries
Version: 2023/09
Part no.: 204979
Translation of the "Original Dokumentation"
Imprint
Name: PDK_204979_Software_AIPEX_PRO_V3_en
Version: Version: 2023/09
Change Letter symbol
l new AMKmotion Design LeS
Previous version: 2019/45
Product version: Product Firmware Version (Part no.)
PC Software AIPEX PRO V3.04 2018/47 (207211)
Software AFL for AFL V3 Version 3.14 2015/41 (206005)
CODESYS V2
Software AFL for AFL V4 Version 3.5.5.0 2015/41 (206004)
CODESYS V3
Imprint 2
1 About this documentation 13
1.1 Structure of this document 13
1.2 Keeping this document 13
1.3 Target group 13
1.4 Purpose 14
1.5 Display conventions 14
1.6 Appendant documents 14
1.7 Translation help for screenshots 14
2 For your safety 16
2.1 Basic notes for your safety 16
2.2 Presenting safety messages 16
2.3 Class of hazard 16
2.4 Intended use 17
3 AIPEX PRO 18
3.1 Installation manual 18
3.1.1 Requirement 18
3.1.2 Important hints 18
3.1.3 Installation 18
3.2 Service pack 35
3.3 Program overview 36
3.3.1 Program overview - Symbols and Icons 37
3.3.2 Program overview - Display filter 39
3.3.3 Program overview - Enable views 40
3.4 Communication PC - AMK device 43
3.4.1 Communication server 43
3.4.1.1 Communication server adjustments 44
3.4.2 CAN interface 46
3.4.2.1 CAN adjustment 46
3.4.3 COM interface 48
3.4.3.1 COM adjustments 48
3.4.3.2 Serial AMK cable RS232 (PC-AMK) 51
3.4.3.3 USB-RS232 Interface 52
3.4.4 EtherCAT interface 54
3.4.4.1 EtherCAT adjustments 55
3.4.5 Ethernet interface 57
3.4.5.1 Ethernet adjustments 57
3.4.6 SERCOS III interface 66
3.4.6.1 SERCOS III adjustment 67
3.4.7 USB interface 69
3.4.7.1 USB adjustments 69
3.4.8 AIPEX PRO Add In Gateway for TwinCAT V2 69
3.4.9 Testing the communication 69
3.5 Tabs 70
3.5.1 Configuration 70
3.5.1.1 Configuration - Manual 71
3.5.1.1.1 Properties - device 71
3.5.1.1.2 Interface 72
3.5.1.1.3 PLC 73
3.5.1.1.4 Motor 74
3.5.2 Parameter 74
1.4 Purpose
This document is addressed to any person who handles the product. It gives information about the following topics:
l Startup and operation
l Diagnosis
l Software installation
l FIRST STEPS description
The red hand symbol indicates the button or menu item to click on.
The red hand symbol indicates the option to be selected.
RMB
0x 0x followed by a hexadecimal number, e. g. 0x500A
'Names' Names are represented with apostrophes e. g. parameters, variables, etc.
'Text' Menu items and buttons in a software or on a controller, e. g.:
Click the 'OK' button in the 'Options' menu to call up the 'Delete PLC program' function
→ Task procedure / operating sequence,
e. g. 'Start' → 'All programs' → 'Additional' → 'Editor'
e. g. 0 → 1 edge
See 'chapter name' on page x Executable cross-reference in electronic output media
Software descriptions
AMK part-no. Title
205210 Software description AmkLibraries
204072 AIPEX PRO add in gateway for TwinCAT
203771 Software description ATF - AMK Tool Flasher
205171 AIPEX PRO Startup
o Mechanical hazard (e. g. crush, retract due to the rotation of the motor shaft)
l These hazards are present while starting up and operating the unit, and also during servicing or maintenance work.
l Safety instructions in the documentation and on the product warn about the hazards.
l Personnel must have read and understood the safety instructions before installing and operating the product. In the
documentation about the product the usage warnings pertain to direct hazards and must therefore be followed directly
when operating or handling the product by the operator.
l AMKmotion products must be kept in their original order, that means it is not allowed to do a significant constructional
change on hardware side and software is not allowed to be decompiled and change the source code.
l Damaged or faulty products are not allowed to be integrated or put into operation.
l Do not start the system in which the AMKmotion products are installed (begin of intended use) until you can determine that
all relevant standards, laws, and directives have been complied with, e. g. low voltage directive, EMC directive, and the
machinery directive, and possible further product standards. The plant manufacturer is responsible for the compliance with
the laws, directives, and standards.
l The devices must be installed, electrically connected and operated as shown in the device description documentation. The
technical data and the required environmental conditions must be observed at all times.
SIGNAL WORD
Type and source of risk
Consequence(s) of non-observance
Steps to prevent:
l ...
WARNING indicates a hazardous situation which, if not avoided, could result in death or serious
WARNING injury
CAUTION, used with the safety alert symbol, indicates a hazardous situation which, if not avoided,
CAUTION could result in minor or moderate injury
NOTICE is used to address preventions to avoid material damage, but not related to personal
NOTICE
injury.
The AMK 'AIPEX PRO V3' software supports the startup of AMK drive systems. AMK drive systems connected with an electronic
nameplate are detected and identified automatically. At the same time, all the important data of the devices are displayed. With the
AMK 'AIPEX PRO V3' software and integrated 'CODESYS V3' software, you can configure, optimize, diagnose, program and start
up AMK drive systems.
3.1.1 Requirement
Recommended PC requirement
l Processor: Pentium V, Centrino > 3,0 GHz, Pentium M > 1,5 GHz
l Available hard disc space 1 GB or higher
l RAM 1024 MB or higher
If you deinstall AIPEX PRO from your PC, all installed drivers (WinPcap, USBCOM driver and IXXAT driver) will
be removed.
3.1.3 Installation
The 'AMK AIPEX PRO Installer' starts automatically after insertion the CD.
Call manually the file 'SetupAipexPro.exe' if the automatically CD start is deactivated.
The installation of a service pack is possible only for the corresponding AIPEX PRO version. This means for example, a service
pack AipexPro_105_SP04_1051_203405.zip can only be postinstalled for an AIPEX PRO version V1.05.
Each service pack contains all features of the preceding service pack. That is why it is sufficient to always install only the latest
service pack.
Communication interface between PC and device is activated, physically existing and ready
CODESYS Version 2
CODESYS Version 3
Name Note
Device Display of the station name
PLC Display of the PLC component
I/O Display of the binary inputs and outputs
Device type Display of the device type
Controller card Display of the controller card
Motor Properties of the motor
Unassigned channel Display of unassigned interfaces
Option Display of option cards
Interface Interface between AIPEX PRO and CoDeSys
Bus AMK bus (e.g. ACC bus, CAN-S, EtherCAT...)
Using the selection box, you can select between 'Full view' and (if it exists) the user-specific partial views. User-specific partial
views are generated by selecting the start point and the clicking on the 'New' button.
Example partial view: Start point Drive 1 module, end point Supply 33 module.
It is not possible to run several instances of the sames software at the same time!
The program will start automatically when you call AIPEX PRO, AIPEX LITE, ATF,.. and closed again.
The started, 'AMK Communication Server' is visible in the Windows Task bar.
The following bus systems are supported by the communication server (Hardware components and drivers must be installed):
l Ethernet is always active
l USB is always active
l CANCLIENT has to be activated in AIPEX PRO
l EtherCAT has to be activated in AIPEX PRO
Example:
KE with ACC bus and KW with KW-R03 (comparable with KU-/KW-R03(P) and KU-/ KW-R04).
Converter:
AMK USB-CAN converter (part-no. O755). (Includes connection cables and termination resistors for 'KE/KW' series and also for
'Decentralized drive technology'.
Example:
KE with ACC bus and KW with KW-R03 (comparable with KU-/KW-R03(P) and KU-/ KW-R04).
It is possible to get access over ACC bus to other devices. In this case the connected controller card must be defined as ACC bus
master.
Cable:
l Serial interface cable AMK part-no. O576
l AMK USB-RS232 converter AMK part-no. 200770
To test the communication, connect a device with the PC and restart AIPEX PRO again.
The change of the colour of the symbol from red to green at the bottom right edge indicates that the
communication is functioning properly.
A green/red symbol indicates that there is more than one active interface.
Example Windows XP
During the driver installation of a AMK USB-RS232 converter, an additional virtual COM interface is generated by the PC. The
interface number can be read out. Open 'Windows' -> 'System Properties' -> 'Hardware' -> 'Device Manager' -> 'Ports (COM
and LPT)'.
Enter the USB Serial Port interface number (in this example COM3) in the 'SbusRegister' ('Start' -> 'All Programs' --> 'AMK' -->
'SbusRegister'). Use for that the button 'Extended' and the button 'Insert COM'.
Example:
KE with ACC bus and KW with KW-R06 (comparable with KW-R07, KW-R16 and KW-R17).
Access is possible via the EtherCAT connection to all connected modules. You can also access ACC bus slave devices via the
ACC bus connection of the controller card.
Cable:
Ethernet Standard RJ45 Twisted Pair Patch cable.
An Ethernet cable with an M12 connector is required for the connection to the 'Decentralized drive technology':
See device description AMK Part no. 203445 Decentralized drive technology iC / iX / iDT5, chapter: Cables for EtherCAT
connector [X85] and [X86].
EtherCAT slave
The connected drive (compact power supply or compact inverter) establishes the EtherCAT slave.
Its network settings must be adapted:
Prerequisite:
WinPcap will be automatically installed with AIPEX PRO
Example:
Controller, KE with ACC bus and KW with KW-R06 (comparable with KW-R07, KW-R16 and KW-R17).
Access is possible via the EtherCAT connection to all connected modules. You can also access ACC bus slave devices via the
ACC bus connection of the controller card.
Cable:
Ethernet Standard RJ45 Twisted Pair Patch cable.
If your PC not automatically crossed a Twisted Pair Cable, use a RJ45 Crosscable for the connection.
Example Windows 7
Invoke the Windows menu 'Systemsteuerung' -> 'Netzwerk und Internet' -> 'Netzwerk- und Freigabecenter' Open your
active LAN connection by clicking on it.
No active LAN connection: Invoke the menu 'Adaptereinstellungen ändern' .
All active and manually created AMK Ethernet devices are displayed that were created in the title bar device. Select the device
with which you want to establish a connection.
Cable:
Ethernet Standard RJ45 Twisted Pair Patch cable.
Windows 7
Windows XP
Example:
KE with ACC bus and KW with KW-R06 (comparable with KW-R07, KW-R16 and KW-R17).
You get also access to ACC bus slave devices via the ACC bus connection of the controller card.
Cable:
AMK USB cable with ferrite core 3 m (AMK part-no. 47058).
Prerequisites:
l communication is defined in AIPEX PRO
l connecting cable between PC and device
l AIPEX PRO window maximised (full screen)
3.5 Tabs
3.5.1 Configuration
Properties devices
AIPEX PRO Meaning Example
Device AMK device description KW Compact inverter module
Software version Installed software version KW 111 1320 204533
Type AMK type and nameplate ratings KW 2
Ser. No. Serial number 123456
Part number Part number 46304
Station name The station name can be changed by the user Antrieb_R06
Data set name Data set name of the actual opened AIPEX PRO project. Demo
Fieldbus properties
AIPEX PRO Meaning Example
Connection Interface on the device X85-X86
Bus name AMK bus description EtherCAT
Bus physic General bus description ETHERCAT
Instance Each bus will be parameterised in a own instance. 1
IP Address *1 192.168.0.1
Network mask *1 Controller network adjustments 255.255.255.0
Gateway Address *1 0.0.0.0
Address *12 Device address 1
Fix Addressing *1 Automatic assigned address by bus master or fix address
Offline project
1. Automatic assigned address by bus master
If you generate an offline project, you have to enter the future bus position as address.
Requirement: ID34023 'BUS address participant' = 0.
2. Fix address
Enter the address, following mark the check box 'Fix address'.
Online project
AIPEX PRO reads the actual (fix) address from the device. The address will be displayed.
After changing the address or check box 'Fix address' the device must be restart.
If you call the menu 'Configuration' -> 'Configuration create' the (fix) address will be
overtaken to the XML configuration file.
3.5.1.1.2 Interface
The 'Interface' is the interface between physical device and symbolic device name (variable) from PLC editor.
The allocation can be automatically (Siehe 'Automatic bus configuration' auf Seite 711.) or manual per drag and drop.
3.5.2 Parameter
'Parameter' displays available offline and online values of the device selected in the device tree.
3.5.2.1.1 Overview
Icon Meaning
Window: Parameter selection and System internal parameters
Search: ID number
Field Explanation
ID Parameter number
Name Designation of the parameter
Value Current value of the parameter
Folder icon = Parameter list
Unit Unit of the parameter
Length Data length of the parameter in byte
l 1 byte
l 2 byte
l 4 byte
Type Display of the parameter
l Dec: decimal
l ±Dec: decimal signed
l Bin: binary
l Hex: hexadecimal
l Ascii: Ascii string
Remark Text field, freely usable by the user
Background colour White: Value can be modified
in the column Pink: Value cannot be modified (write-protected or formal)
"Value"
Text colour in the Blue: Value was modified, but not yet saved
column "Value" Black: Value is unchanged since the last saving
Red: This is a system parameter (can be modified only if
enabled)
Icon in column Yellow: Parameter is specific for the parameter set
"Length" Green: Parameter is specific for the instance
Lists
l Lists are indicated by the folder icon in 'Value' column.
l For non-ASCII lists, the number of list elements is indicated next to the icon. For ASCII lists, the text content is displayed
here.
l All lists can be displayed in expanded form by a double-click in the 'Value' column. The number of maximum possible list
elements is shown in the first line underneath. All further lines display the list content by elements.
l The display of the list elements can be structured by entering own values in the columns lengths (1, 2, 4) and type (Dec,
Hex, Bin, Ascii).
Entering values
l The value of modifiable parameters can be edited directly in the table. Each input is completed by pressing the 'Enter'.
l The input needs to be appropriate for the displayed data type.
l Some parameters have a minimum and a maximum limitation of the value. If these are breached during input, an error
message is displayed.
Modifying lists
l For non-ASCII lists, entering a value next to the folder icon changes is current list length. The value may not be longer than
the maximum list length.
l For ASCII lists, the input next to the folder icon is interpreted as a string and the list is modified appropriately.
l In expandable lists, the list elements can be modified directly. The input needs to be appropriate for the displayed data type
of the element or in case none exists, fit the list.
Field Explanation
Displaying ID in the The selected parameter will be displayed as indicated in the ID Properties .
standard type
Display ID decimally The selected parameter will be displayed decimally.*
Display ID The selected parameter will be displayed hexadecimally.*
hexadecimally
Display ID binary The selected parameter will be displayed binary.*
Structured list If 'Show lists with structure' is activated in the context menu, the user can specify 'Name', 'Value',
displays 'Unit length' (e.g. user lists).
Selection Opens the window 'Parameter selection'.
Save ID in selection The number of the selected parameter is saved in the currently specified 'own list'. It is of no
list importance if the 'own list' is active.
Update display Updating the online values. All values are discarded and read in anew from the connected drive.
Data compare The content of the currently displayed parameter set can be compared with an already saved one.
Download/Copy With this menu item, the selected parameter is transferred between data set and online device.
project parameters If the selection is in the column of the device data set, the parameter is copied from the offline data
set set to the online device.
If the selection is in the column of the online data set, the parameter is saved from the online device
to the offline data set.
The name of the menu item changes, depending on the selected column.
Copy data The contents of currently marked parts of the parameter table are copied to the Windows clipboard
and thus are available as insertable text for many applications, such as text programs.
If complete lines are marked in the table, an internal copy of this parameter is made as well.
Insert data If there is an internal copy of parameters, then its content is inserted in the corresponding
parameter.
If no internal copy exists, then the content of the Windows clipboard is inserted unchecked as text
as of the currently selected point in the table.
Export data set Siehe 'Project' auf Seite 94.
3.5.2.1.4 ID Properties
ID Properties
ID Parameter number
Name Parameter name
Unit Unit
Group Parameter group
Data-len Data length of the parameter in byte
Comma Power of 10 scaling factor X (for 10 to the power of X)
N-Comma Decimal places for parameter value display
Factor Scaling factor in 10 to the power of X
MinMax Minimum value / maximum value available
Min Minimum input value
Max Maximum input value
DrvSpec Drive-specific parameter
InstSpec Instance-specific parameter
[Not DrvSpec and not InstSpec = Global parameter]
RO Read Only
Hidden System-internal parameter
Bin Input format binary
Hex Input format hexadecimal
Selection Description
All parameters All parameters are displayed. (System-internal parameters need to be selected additionally)
Individual groups All parameters of the selected parameter group are displayed.
Own list All parameters of the selected own list are displayed.
The own lists can be expanded as needed. Each list consists of a sequence of ID numbers or number
ranges separated by commas and can be designated by a freely selectable name. Example: My list 1, 2,
5, 90, 32000-32100
Each list is deleted again by complete removal of the content.
System-internal System-internal parameters are displayed in the parameter list (colour red)
Parameters
Permit changes After the release, system-internal parameters can be modified.
By the coupling of component configuration and programming environment, AIPEX PRO is capable of executing the automatic
fieldbus configuration. Data is provided automatically thereby synchronously or asynchronously in the PLC program depending on
their purpose. Drive data as well as I/O data is configured automatically.
Select all
All modules are displayed in the message configurator.
Deselect all
All modules are deselected
Connections
Manually generated
Only connections that are generated manually by the user are displayed in the message configurator.
Automatically generated
Only connections that are generated automatically by AIPEX PRO are displayed in the message configurator.
.
3.5.3.2.1 ACC-Bus
l Edit in the CCF window enables a direct editing of the CCF file in the tab CCF Output.
l Use of input variables as output input variables that were described in the EDS file can be read back.
l Check variables overlapping in the tab Connections overlapping variables are not filtered.
l Automatic optimization by DUMMY variables
l Always assign CCB data to nodes. Activate this option if you want to implement a CANclient structure without master.
l Enable guarding (master) and life guarding (slave) monitoring. The presence of master and slave on the Bus is monitored
reciprocative. If a node is missing (master or slave), an error message is generated. The necessary values "Guard Time"
and "Life Time Factor" are automatically generated by AIPEX.
l Exclude Guarding The monitor functions node guarding (master) and life guarding (slave) are deactivated completely.
(Useable for external terminals!)
l Transfer CCB to Parameter Existing *.eds files can be loaded directly in the project.
l Check variables overlapping in the tab Connections overlapping variables are not filtered.
l Use of input variables as output input variables that were described in the EDS file can be read back.
Create XML configuration from a file Existing *.XML files can be loaded directly in the project.
3.5.3.3.1 ACC-Bus
3.5.3.3.2 EtherCAT
All PDOs contained in the description file of the device are listed.
l "Index" – unique numerical identification
l "Size" – Size of the PDO in bytes.bits
l "Name" – Designation of the PDO (free text)
l "Flags" – F:fixed, V:virtual, M:mandatory
l "Direction" – T:transmit, R:receive
The PDO content is displayed in the lower table for the PDO selected in the PDO list.
l "Index"/"SubIndex" – Unique numerical identification of the variables
l "Size" – Size of the variables in bytes.bits
l "Offset" – Position of the variables in the PDO
l "Name" – Designation of the variable (free text)
l "Type" – Data type of the variables
On non-fixed PDOs, the PDO content can be modified by the context menu. New elements can be added, for example.
Example:
Profibus with an AMK PB option card uses a fix address area. It is not allowed for the automatic network configurator to use the
same area. You have to reserve the variables.
3.5.4 Scope
Each AMK drive features an internal oscilloscope function. Using AIPEX PRO, you can configure signals that can be recorded in
the drive in real time afterwards. As soon as the internal memory in the drive is full, the measuring data is transferred and
graphically displayed by AIPEX PRO.
Number Function
1 Operating the oscilloscope (Start, Stop
and Trigger button)
Status display
Offline (grey)
Ready (green)
Started (yellow)
Triggered (yellow)
Ready (green)
Error (red)
2 Configuration field
3 Field for drive selection and signal
parameters
4 Display
5 Each view has an own channel selection
6 Scaling the time axis
7 Grid in the display (on / off)
Number Function
1 Control box for displaying the signal curve
2 Computation of signals (addition,
subtraction...)
3 Drive name
4 Channel display: Signal (parameter
number and name) of the selected channel
5 Display of actual value
6 Input box Y- Scale
7 Input box Y- Offset
8 Unit
9 A 'HOLD' curve is not overwritten by a
subsequent measurement.
'LET' delete saved measurement
10 Configured trigger type
11 Configured level
Status indicators
Status display "grey" – no valid device is selected or work is being done offline.
Status "triggered" – trigger fulfilled, or manually activated with the "Trigger" button. The data is retrieved from the drive.
Status "ERROR" – can be an triggered by an error in the oscilloscope as well as a different error. The exact cause can be
determined with the AIPEX PRO tab 'Diagnostics'.
Sampling time 10 ms
* The length (in byte) of each parameter can be taken in the column 'length' (AIPEX PRO tab 'Parameters').
The initialization time of the oscilloscope function in the drive, triggered by pushing the button 'Start'
corresponds approximately to the maximum recording time
A calculation of the following error in the same measuring cycle results in a corrupted value and differs from the
displayed value ID189 'Following distance'.
3.5.5 Diagnose
With 'Diagnostics', the diagnostic messages can be read out from the selected device.
Click on each message to receive an explanation for it. You get further information if you analyse Info (I), I2 and I3
The first message of the list is the main activator of the fault; further displayed numbers might be resulting errors which will not
appear any longer after rectifying the cause of the first diagnostic message.
3.6 Menus
3.6.1 Project
New [Strg + N]
Icon
The opened project is closed and a new project is created.
Open... [Strg + O]
Icon
AIPEX PRO and AIPEX/AIPAR files can be opened.
Save [Strg + S]
Icon
When you save a file for the fist time, the 'Save as' dialog box is displayed automatically.
Save as...
Select a memory location. Enter your project name.
Close
The opened project is closed. Afterwards, you select the menu 'Project' -> 'New' to continue.
Icon
individual device data can be imported from a project data set.
Select your project data set.
Admin...
Under 'Admin' you can delete complete AIPEX PRO project file.
History...
Create a history for your project.
Adding entries:
Enter your text in the 'Content' field. To confirm, press the 'Add' button.
Print... [Strg + P]
Icon
Use the function 'Print', the displayed data in the operating modi 'Parameter', 'Message' and 'Scope' can be printed out.
Print Preview
Use the function 'Print Preview' , the displayed data in the operating modi 'Parameter', 'Message' and 'Scope' will be displayed as
print preview. Following the data can be printed.
Page Setup...
Use the function 'Page Setup...' a printer can be adjusted.
Exit
The project and AIPEX PRO will be closed.
3.6.2 Online
Icon
AIPEX PRO establishes a connection to the devices if there is an active interface.
All devices that are detected when the fieldbus is scanned appear in the window 'Import'.
Icon
Closes the online connection to the devices
Import
Icon
Right-click on the opened 'Import online' window. With the selection of 'Copy completely in the project', all device data is
transferred.
Use the mouse (drag and drop) to import individual online devices from the import window into the current project.
The bus structure must always be maintained. (PC Connection – Bus master – Drive bus –
Drives). Before you can import an individual drive for example into an empty project, you have
to first insert the PC connection and a bus master manually.
Icon
The function 'Synchronisation parameters' indicates whether the offline data set (PC) is identical to the online data set (device).
Pressing the button 'Download' copies the offline data onto the selected devices.
(Function is identical to 'Online' -> 'Download project parameters set')
Pressing the 'Finish read' button copies the offline data of the selected devices to the PC (offline data).
(Function is identical to Online -> Upload parameter set)
The button of the Synchronisation parameter function indicates (And-linked) the device status.
'Upload parameter set' -> from selected device: Only the device selected in the device tree is taken into account.
'Upload parameter set' -> from all devices: All devices existing in the device tree are taken into account
'Download project parameter set' -> 'to local device': Only the device selected in the device tree is taken into account.
'Download project parameter set' -> 'to all devices': All devices existing in the device tree are taken into account.
3.6.3 View
Sort by addresses
The devices in the device tree are sorted by ascending bus addresses.
Sort by names
The devices in the device tree are sorted alphabetically according to their station names.
Position view
EtherCAT:
The devices are displayed in the same order, as the physically position in the bus system.
The devices can be moved inside the device tree.
Example: Siehe 'Moving device position in the EtherCAT bus' auf Seite 149.
ACC-Bus:
Unsorted
3.6.4 Extras
Project Settings...
Menu for 'Base Settings' and 'Configuration create'. Valid for the actual open project.
Siehe 'Extras - Project Settings' auf Seite 108.
Firmware update...
Siehe 'Updating the device firmware' auf Seite 136.
Language
Select the language in which the menu and the dialog texts as well as the online help should appear.
The device language is switched by the parameter ID265 'Language'.
Define here, in which language the menu and dialog texts should be displayed.
The device language will be changed with the parameter ID265 'Language'.
After the changing the language setting, AIPEX PRO needs to be rebooted.
Restart AIPEX PRO after changing the language.
3.6.4.1.2 PC Communication
With the tap 'PC Communication' you can choose the interface between PC and AMK device.
It depends on the target device, which interface is available.
l COM
l Ethernet (always active)
l CAN
l EtherCAT
l SERCOS III
l USB (always active)
l TwinCAT Gateway
Template
You define with 'Template' the start template of a new CODESYS project.
You can choose between 'ST structured text' 'FBD function block diagram' or if installed 'AFL library'.
ST is the default adjustment. The 'Template' must be set before the PLC project is generated.
Docked
The PLC editor CODESYS opens directly in the AIPEX PRO interface. If this option is not set, then the PLC editor CODESYS will
be started as an independent application.
Login automatically
If a configuration is created without faults, the CODESYS function 'Logon' is invoked.
From AIPEX PRO version 3.03 a manual or automatic CODESYS V3 version control is offered.
Manual version control (CODESYS V3) 'disabled' (Default setting)
l Create a new CODESYS V3 project → A new CODESYS V3 project will always be created with the latest installed
CODESYS V3 version.
l Open a existing CODESYS V3 projec → AIPEX PRO automatically detects with which CODESYS V3 version an existing
CODESYS V3 project was created. AIPEX PRO automatically opens the matching CODESYS V3 version. Is the matching
CODESYS V3 version not installed, the project will open with the latest installed CODESYS V3 version.
Expert mode
No new 'bus configuration' is created under 'CODESYS' → Logon.
Changes in the PLC program are ignored that would have a new bus configuration as a consequence.
'Login' via CODESYS 'Online' is available.
Online Update
Starting the program there will be an automatic search for 'Online Updates' on AMK web site.
The download of an available Update must be confirmed.
Requirements:
l Internet connection
l Administrator rights
For this update you must have administrator rights. If you start AIPEX PRO, the update files will be searched
and found, but you are not able to install it.
You can also start the 'Online Update' manually. Siehe ''?' - Documentations' auf Seite 122.
Example:
If the AMK function block 'SET_CTRL_INVERTER_ON__RF' is used in CODESYS , AIPEX PRO sets the value of the ID32796
'Source RF' source controller enable to 5 (importance: Signal controller enable is set by the PLC).
The IDs and their significance are described in the parameter description.
Using the button 'Add' you can assign own device parameters to the PLC functions.
Using the button 'Delete' you can delete own device parameters.
Pressing the 'Specification' button resets to the original AMK conditions.
3.6.5 Start up
System booting...
A 'System booting' is carried out on the selected device.
A 'System booting' causes a recalculation of the data management. (Actual values are maintained, drive bus continues running...)
Event trace...
The 'Event trace' menu can be used to read the contents of ID34088 'Event trace' and view it as text in the text editor. This function
can also be called up in offline mode if a project data set exists.
The ID34088 'Event trace' of the currently selected device will be displayed.
The list is created in LIFO mode (last in, first out) so that the last entry is seen first.
The number of saved errors depends on the type of device.
Message Monitor...
The 'Message Monitor' is a dynamic display of mapped variables. A cyclic, but temporally undefined display of the values follows.
With EtherCAT, not the values are read out directly and displayed from the selected device, but rather their counterpart in the
respective master.
Only the variables mapped to the master can be displayed (no slave – slave connection).
Only the values can be displayed that are mapped by an ID in the master.
The target device needs to be selected before calling up this menu item in the device tree.
For the ACC bus, an IXXAT CAN adapter needs to be integrated into the ACC bus. All messages in the selected ACC bus are
displayed dynamically with sender and receiver as well as the current value.
The menu item can only be called up if the CAN adapter has not been activated for the online connection.
The ACC bus master needs to be selected before calling up this menu item in the device tree.
Temporary parameter...
Changes in the 'Temporary parameters' are effective immediately in the drive.
In the selection list, only parameters are offered that can be modified temporarily.
All modified values are displayed in green font.
When the 'Temporary parameters' window is closed, you can specify whether or not the changes should be saved permanently.
Monitor...
The 'Online Monitor' is a dynamic display of device data and statuses. A cyclic, but temporally undefined display of the values
follows.
Siehe 'Start up - Monitor' auf Seite 115.
Testgenerator...
The 'Test generator' function of the AIPEX PRO software gives support to the initial startup and controller tuning.
The startup function contains a setpoint generator which can set several curve forms (trapezoidal, square wave, triangular,
sinusoidal) for different operation modes (torque, speed, position control).
Siehe 'Test generator' auf Seite 160.
The 'AIPEX Startup' software is a own product and must be installed for using with the AIPEX PRO menu.
See document Software description AIPEX PRO Startup, (Teile-Nr. 205171).
Parameter
With the field 'Parameter' you can dynamic display any parameter.
Enter in the second column, the parameter number that should be displayed.
ByIn/Out, wIn/Out, dwIn/Out are PLC variables. Enter in the second column, the index of your PLC variable that should be
displayed.
Example: In the PLC (controller configuration), the Word wOut4 is configured. Enter 4 as the index.
Before you first put the motor into operation, check the sense of rotation
By means of the AIPEX PRO oscilloscope, you can store and interpret the movement.
Configuration create...
Icon
'Configuration create' automatically creates the message configuration between the devices and compiles the plc program.
Additionally, device parameters are automatically adjusted to the function blocks used in the PLC editor. Siehe 'Project Settings -
Configuration create (project specific)' auf Seite 108.
The link between the symbolic device names (variables) from the CODESYS programming system and the available physical
devices must be manually created by 'drag and drop' (Siehe 'Automatic bus configuration' auf Seite 711.) or automatically with the
AIPEX PRO function 'Import device name on creation of a new PLC project' (Siehe 'Configuration create' auf Seite 103. )
Configuration visualization
The function 'Configuration visualization' displays the network configuration with the PLC variables.
CODESYS Login
Icon
'CODESYS Login' connects AIPEX PRO with the PLC control and switches into the online mode.
On obsolete configuration, the 'Configuration create' menu is opened automatically.
CODESYS Logout
Icon
The connection to the controller is separated and switch is to the offline mode.
If you install an 'AIPEX PRO service pack' or if you do a 'Online Update', the documentations will be automatically updated.
(The 'AIPEX PRO service pack can include several 'Online Updates')
Online Update
Starting the program there will be an automatic search for 'Online Updates' on AMK web site.
The download of an available Update must be confirmed.
Requirements:
l Internet connection
l Administrator rights
For this update you must have administrator rights. If you start AIPEX PRO, the update files will be searched
and found, but you are not able to install it.
The ‘Online Update’ can be done automatically at program start. Siehe 'Data update' auf Seite 106.
All active interfaces (connections between PC and AMK devices) are offered for selection.
Select the desired interface.
Status indicator:
Green = Connection established
Red = Connection not established or interrupted
Example:
The supply module KE 33 is connected via ACC bus.
3.6.8.2 Parameter
'Parameter' displays available offline and online values of the device selected in the device tree.
When the 'Temporary parameters' window is closed, you can specify whether or not the changes should be saved permanently.
With 'Diagnostics', the diagnostic messages can be read out from the selected device.
Click on each message to receive an explanation for it. You get further information if you analyse Info (I), I2 and I3
The first message of the list is the main activator of the fault; further displayed numbers might be resulting errors which will not
appear any longer after rectifying the cause of the first diagnostic message.
Subnet mask:
Button 'A' / Class A network / 255.0.0.0
Button 'B' / Class B network / 255.255.0.0
Button 'C' / Class C network / 255.255.255.0
Gateway:
Button 'Delete': Deactivates the current gateway setting.
Button 'Detect': Set the address of the current gateway of the PC in the Gateway setting of the selected device (this address is
often, but not always, identical for both devices).
EtherCAT Master
Column 1 : Physical position after the EtherCAT master
Symbol EtherCAT Bus status Operational (XML Configuration file not valid)
Column Actual: Current EtherCAT address
Column Fix addr.: Manual input of the EtherCAT address by the user (fixed address)
Column Given: Address information which are saved in the automatically generated XML network file
Column Device type: Device type and EtherCAT revision stand
Configuration
Button 'Clear': Deletes the current EtherCAT configuration.
Button 'Show' : Reads out and displays the current device configuration from the parameters (ID).
Button 'Show device list': Extracts the device list from the current device configuration and displays it in the editor.
Check box 'Show in table': Additional column 'Given' and 'Device type'.
EtherCAT Slave
Display and input box for the EtherCAT slave address.
PLC
Display of the ID34172 'PLC project info'. The following data can be entered and displayed using the CODESYS PLC editor (menu
item Project -> Project information).
l Date
l Project name
l Title
l Version
l Author
l Comment
The function 'Import program (to the device)'and 'Clear program' are protected by AMK service password.
The PLC program is saved in ID34159 'PLC files'.
CODESYS Version
Choose the CODESYS Version which should be used later at the controller.
Controller options
Valid for CODESYS V3.
The installed controller options at factory setting can be disabled and enabled by using the checkboxes.
After dis- or enabling the options, the controller must be restarted (24 VDC OFF / ON).
Example:
For an ISA controller with additional option PCO (PLCopen) and option VIS (visualization) uses the target system:
ArmPLCopenControlWithVisu V3.
After disabling the checkbox 'PLCopen' the device will be a iSA controller with additional option VIS (visualization) with target
system: ArmControlWithVisu V3.
DANGER
Risk of injury from hanging axes
The optional motor brake is a holding brake and does NOT provide sufficient protection for
persons.
Hanging axes can fall and lead to severe injury.
Steps to prevent:
l All hanging axes must be mechanically secured against falling with a fall arrester or a
supplementary external brake, for instance.
l People must not stand under hanging loads
For converters with the option "power output stage enable EF" or "STO" the brake can only be controlled if the
power output stage enable is set.
Button 'Commutation'
Reserved for AMK internal use!
Systeminfo
Following information will be displayed for the selected device:
l Software
l Type
l Product code
l Serial number
You can reopen the created file with the Software AIPEX PRO to display the parameter set.
It is not possible to download the saved *.apu parameter set to a device.
CRC-parameter set: Check sum (CRC) customer specific safe parameter set
Fitting template: Matching template device version (firmware safety board)
CRC-template: Check sum (CRC) template
CRC-verification: Check sum (CRC) customer specific safe parameter set + serial number device
The button 'Start PMT' calls the software SafePMT (Safe parameter editor).
FSoE
The entered FSoE adress transfer with the button 'Set' in die ID33201 'Safety address'.
The address setting by DIP switch is prior to addresses via parameter and can not be over written.
During firmware update or initial program loading, the address parameter ID332201 will be reset to 0.
3.7 Functions
Select the device that you wish to update from the device tree.
Start the update procedure by selecting 'Extras' → 'Firmware Update'
'Flash Mode Auto' enabled. The device automatically switches to Flash Mode.
'Flash Mode Auto' disabled. The device must be manually switched to Flash Mode.
You can import the new firmware files by pressing the 'Import' .
Establish a direct connection between the PC and device. E.g. via a USB or EtherCAT connection.
Select the interface used.
Progress bar
The new firmware update is first activated after restarting the device!
Depending on the new firmware version, 'initial program loading' is then necessary.
Select the 'Parameter'tab. By selecting any parameter with the right mouse button, the context menu opens. Select 'Data
compare'.
Select the folder and comparative data set. Confirm by pressing 'Open'.
If the upper option is selected, the same parameter set or same instance of the comparative file is always used as with the original
data set; i.e. the tabs ('P-set 0', 'P-set 1'... 'Inst 0', 'Inst 2'..)) below the table are also valid for the comparative data set.
With the lower option, a set value for the parameter set and the instance of the reference file is selected. The ('P-set 0', 'P-set 1'...
'Inst 0', 'Inst 2'...) tabs below the table have no effect on the reference file in this case.
The data of the reference file are displayed in an additional column but cannot be modified. All data of the reference file differing
from the original data set are highlighted in orange.
By clicking in the title field of the reference file, you can change between the display of all parameters and a display of the
differentiating parameters.
Click on each message to receive an explanation for it. You get further information if you analyse Info (I), I2 and I3
The first message of the list is the main activator of the fault; further displayed numbers might be resulting errors which will not
appear any longer after rectifying the cause of the first diagnostic message.
After successful removal of errors, 'clear error' causes a system reboot and SBM is set.
3.7.4 Log on
Log on and create project
Use this variant if you then want to save the device data as an AIPEX PRO project on your PC.
Add the device data to your project. Press 'Accepted to the project complete'
Press 'Logon'
The loading time depends on the connection used (Ethernet, SBUS, CAN ...) and the number of devices
connected.
The PLC program is only added to the AIPEX PRO project if you execute and confirm the function 'Online' → 'Upload parameter
set' → 'from all devices'.
Save the project. In the dialog box, you can then specify the directory and the file name.
If, during 'Logon', AIPEX PRO detects an external device without a device description file, the following diagnostic message is
displayed:
The device description does not contain any information about:
.....
Please update database
The following example describes how to configure a 'modular device' (a AIO terminal in the example).
Prerequisite:
The device description file of the bus coupler is imported.
Siehe 'Data update' auf Seite 106. 'Import description of external device' function
Add the device data to your project. Press 'Accepted to the project complete'
As an alternative to manual input of occupied slots in 'modular device', the current configuration can be reed directly from the
connected device.
Prerequisite:
Online mode active.
The configured signals are shown and hidden using the 'CH – ID Parameter names' field.
Adjust the 'Sampling time' and 'Trigger position' to your measurement.
The scope waits for the configured trigger signal. The recorded measuring data is then transferred and displayed graphically.
(In the example, the setpoint is specified by the test generator).
Before you first put the motor into operation, check the sense of rotation
The following example shows how to set a positive speed setpoint with acceleration and deceleration ramp.
By means of the 'Scope' function of AIPEX PRO, you can display and store the actual motor values
By means of the AIPEX PRO oscilloscope, you can store and interpret the movement.
Click on the 'Open' button to open the 'Open project or dataset' dialog box. Select the dataset you require.
The AFL Standard blocks consist of AFL Application blocks and they are a part of the AFL Function Library.
Siehe 'AMK AFL Application blocks' auf Seite 348.
The AFL Application blocks consist of PLC Basic blocks (See document Software description AmkLibraries
(Part no. 205210))
Corresponding CODESYS version must also be installed when installing AIPEX PRO.
A PLC project can be enlarged AFL Application blocks and PLC Basic function blocks.
Make sure that the functionality of used function blocks do not contradict each other. Eg. several blocks in a
project that can set or reset the control signal 'RF Controller enable'.
Application example:
*1 AflImportBasicControl import the structure 'ST_CONTROL'. It has to call one time for each project.
*2 Only if you use power supply module KE/KEN/KES (exception KEN 05-xx).
The devices AMKASMART iC and AMKASYN KEN 05-xx charge automatically the DC-Bus to supply the connected
inverters.
*3 AflImportBasicDrive import 'BASIC_MOTION' (FB). It has to call one time for each project. 'BASIC_MOTION' must not be
called by the user. It will be called automatically by the function block 'STANDARD_AXIS'.
You have to call for each project an instance of 'STANDARD_CONTROL' (for A-series) or 'STANDARD_
CONTROL_iSA (for iSA) must be necessarily used in each PLC project.
(The AFL Application block visualizations contained in an additional library. Siehe 'Visualization of AFL blocks' auf Seite 806. )
The displayed texts (German and English) are stored in a text list: folder 'POUs' → 'Standard' → 'Visualizations'
→ 'Standard' → 'TextListStandard'
STANDARD_CONTROL (FB)
(Import Ordner: POUs → Control)
The following basic functionalities for the controller are available:
l Status bits (SBM System ready message, QFL Acknowl. error cleared, network and bus information)
l The controlling of FL
l The reading out of diagnostic messages
Siehe 'STANDARD_CONTROL (FB)' auf Seite 195.
STANDARD_CONTROL_iSA (FB)
(Import Ordner: POUs → Control)
The following basic functionalities for the controller with supply are available:
l The importing of status bit information (network ready, bus ready, bus warning, bus error, SBM, QUE and QFL)
l The controlling of FL
l The reading out of diagnostic messages
Siehe 'STANDARD_CONTROL_iSA (FB)' auf Seite 197.
STANDARD_AXIS (FB)
STANDARD_IDT4 (FB)
STANDARD_ihX (FB)
STANDARD_KWZ (FB)
(Import Ordner: POUs → Standard)
The following basic functionalities for the axis are available:
It is possible to implement a dancer winder or sensorless rewinder and unwinder with 'Winder' type axes.
It is possible to implement a printing mark control or interposed positioning with 'Position' type axes.
It is possible to implement a printing mark control with 'Printmark' type axes.
'Follow' type axes are available. These follow a setpoint value (master) synchronously.
In addition tables can also be calculated for cam functions, for example.
STANDARD_AXIS_POSITION_INTERPOSED (FB)
(Import Ordner: POUs → Advanced Positioning)
Expanded functionality:
l Interposed positioning
Siehe 'STANDARD_AXIS_POSITION_INTERPOSED (FB)' auf Seite 208.
STANDARD_AXIS_POSITION_TO_THE_MARK (FB)
(Import Ordner: POUs → Print marks)
Expanded functionality:
l Printing mark control
Siehe 'STANDARD_AXIS_POSITION_TO_THE_MARK (FB)' auf Seite 217.
STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL (FB)
(Import Ordner: POUs → Print marks)
Expanded functionality:
l Print mark control: The position of the web to be treated is controlled in relation to a master format (insetting)
Siehe 'STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL (FB)' auf Seite 237.
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_CONT (FB)
(Import Ordner: POUs → Print marks)
Expanded functionality:
l Print mark control: The position of the treating tool (e.g. cutter, punch) is controlled in relation to a master format (register
control)
Siehe 'STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_CONT (FB)' auf Seite 249.
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_DISCONT (FB)
(Import Ordner: POUs → Print marks)
Expanded functionality:
l Print mark control: The position of the treating tool (e.g. cutter, punch) is controlled in relation to a master format (register
control)
Siehe 'STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_DISCONT (FB)' auf Seite 260.
STANDARD_FOLLOW_AXIS_GEAR (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a master.
l A gear ratio can be defined.
Siehe 'STANDARD_FOLLOW_AXIS_GEAR (FB)' auf Seite 271.
STANDARD_FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2 (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a freely selectable table.
l At the end of the table, a table switchover can be carried out.
Siehe 'STANDARD_FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2 (FB)' auf Seite 279.
STANDARD_FOLLOW_AXIS_SWITCHING_TABLE_WITH_OUTGEAR (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a freely selectable table.
l At the end of the table, a table switchover can be carried out.
l The table can be modified via a gear ratio (compress and extend).
Siehe 'STANDARD_FOLLOW_AXIS_SWITCHING_TABLE_WITH_OUTGEAR (FB)' auf Seite 288.
STANDARD_FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2 (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
l At the end of the table, a table switchover can be carried out.
Siehe 'STANDARD_FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2 (FB)' auf Seite 296.
STANDARD_FOLLOW_TABLE_ENGAGE_DISENG_AXIS (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
Siehe 'STANDARD_FOLLOW_TABLE_ENGAGE_DISENG_AXIS (FB)' auf Seite 314.
STANDARD_FOLLOW_TABLE_START_AUTOSTOP_AXIS (FB)
(Import Ordner: POUs → Follow)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
Siehe 'STANDARD_FOLLOW_TABLE_START_AUTOSTOP_AXIS (FB)' auf Seite 322.
STANDARD_WINDER_DANCER_AXIS (FB)
(Import Ordner: POUs → Winder)
Expanded functionality:
The function block 'STANDARD_WINDER_DANCER_AXIS' realizes a dancer winder with the following characteristics with
following features:
l PID regulated dancer winder
l Operation as unwinder and rewinder
l Diameter calculation
l Search diameter at the start of the winder
Siehe 'STANDARD_WINDER_DANCER_AXIS (FB)' auf Seite 330.
STANDARD_WINDER_TORQUE_AXIS (FB)
(Import Ordner: POUs → Winder)
Expanded functionality:
l The function block 'STANDARD_WINDER_TORQUE_AXIS' realizes a sensorless rewinder and unwinder with following
features:
l Torque controlled center winder
l Operation as rewinder and unwinder
l Diameter calculation
l Search diameter at the start of the winder
l Determine the reel of inertia of unknown diameter
l Synchronize onto a running web
Siehe 'STANDARD_WINDER_TORQUE_AXIS (FB)' auf Seite 339.
4.1.1.5.2 Structures
The following access options are available:
The AFL Standard blocks consist of AFL Application blocks and they are a part of the AFL Function Library.
Siehe 'AMK AFL Application blocks' auf Seite 348.
The AFL Application blocks consist of PLC Basic blocks (See documentSoftware description AmkLibraries
(Part no. 205210))
A PLC project can be enlarged AFL Application blocks and PLC Basic function blocks.
Make sure that the functionality of used function blocks do not contradict each other. Eg. several blocks in a
project that can set or reset the control signal 'RF Controller enable'.
The standard blocks will imported in the current PLC project by using an macros. The macro contains all the instructions to import
an imported standard block in the current project.
Requirements:
AMK software AFL Library for CODESYS V2 AMK part no. O877 installed.
AFL template selected. Siehe 'Configuration create' auf Seite 734.
By using CODESYS V2 the macros are execute with the menu 'Edit' → 'Macros'.
Application example:
*1 AflImportBasicControl import the structure 'ST_CONTROL'. It has to call one time for each project.
*2 Only if you use power supply module KE/KEN/KES (exception KEN 05-xx).
The devices AMKASMART iC and AMKASYN KEN 05-xx charge automatically the DC-Bus to supply the connected
inverters.
*3 AflImportBasicDrive import 'BASIC_MOTION' (FB). It has to call one time for each project. 'BASIC_MOTION' must not be
called by the user. It will be called automatically by the function block 'STANDARD_AXIS'.
You have to call for each project an instance of 'STANDARD_CONTROL' (for A-series) or 'STANDARD_
CONTROL_iSA (for iSA) must be necessarily used in each PLC project.
STANDARD_CONTROL (FB)
(Macro: AflImportBasic - AflImportBasicControl + AflImportStandard - AflImportStandardControl)
The following basic functionalities for the controller are available:
l Status bits (SBM System ready message, QFL Acknowl. error cleared, network and bus information)
l The controlling of FL
l The reading out of diagnostic messages
Siehe 'STANDARD_CONTROL (FB)' auf Seite 195.
STANDARD_CONTROL_iSA (FB)
(Macro: AflImportBasic - AflImportBasicControl + AflImportStandard - AflImportStandardControl_iSA)
The following basic functionalities for the controller with supply are available:
l The importing of status bit information (network ready, bus ready, bus warning, bus error, SBM, QUE and QFL)
l The controlling of FL
STANDARD_KE (FB)
(Macro: AflImportStandard - AflImportStandardKE)
The following basic functionalities for the input are available:
l Status bits (QUE Acknowl. DC bus ON, SBM System ready message)
l Control bits (UE DC bus ON, FL Clear error)
l Output of diagnostics number
Siehe 'STANDARD_KE (FB)' auf Seite 199.
STANDARD_AXIS (FB)
STANDARD_IDT4 (FB)
STANDARD_ihX (FB)
STANDARD_KWZ (FB)
(Macro: AflImportBasic - AflImportBasicDrive + AflImportStandard - AflImportStandardAxis)
The following basic functionalities for the axis are available:
It is possible to implement a dancer winder or sensorless rewinder and unwinder with 'Winder' type axes.
It is possible to implement a printing mark control or interposed positioning with 'Position' type axes.
It is possible to implement a printing mark control with 'Printmark' type axes.
'Follow' type axes are available. These follow a setpoint value (master) synchronously.
In addition tables can also be calculated for cam functions, for example.
STANDARD_AXIS_POSITION_INTERPOSED (FB)
(Macro: AflImportAdvancedPositioning - AflImportAdvancedPositioning )
Expanded functionality:
l Interposed positioning
Siehe 'STANDARD_AXIS_POSITION_INTERPOSED (FB)' auf Seite 208.
STANDARD_AXIS_POSITION_TO_THE_MARK (FB)
(Macro: AflImportPrintMarkAxis - AflImportStandardPrintMarkAxisPositionToTheMark)
Expanded functionality:
l Printing mark control
Siehe 'STANDARD_AXIS_POSITION_TO_THE_MARK (FB)' auf Seite 217.
STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL (FB)
(Macro: AflImportPrintMarkAxis - AflImportStandardAxisPrintMarkInsetterInterval)
Expanded functionality:
l Print mark control: The position of the web to be treated is controlled in relation to a master format (insetting)
Siehe 'STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL (FB)' auf Seite 237.
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_CONT (FB)
(Macro: AflImportPrintMarkAxis - AflImportStandardAxisPrintMarkRegisterControlCont)
Expanded functionality:
l Print mark control: The position of the treating tool (e.g. cutter, punch) is controlled in relation to a master format (register
control)
Siehe 'STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_CONT (FB)' auf Seite 249.
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_DISCONT (FB)
(Macro: AflImportPrintMarkAxis - AflImportStandardAxisPrintMarkRegisterControlDiscont)
Expanded functionality:
l Print mark control: The position of the treating tool (e.g. cutter, punch) is controlled in relation to a master format (register
control)
Siehe 'STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_DISCONT (FB)' auf Seite 260.
STANDARD_FOLLOW_AXIS_GEAR (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisGear)
Expanded functionality:
l The slave axis continuously follows a master.
l A gear ratio can be defined.
Siehe 'STANDARD_FOLLOW_AXIS_GEAR (FB)' auf Seite 271.
STANDARD_FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2 (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisContinuousTable1Table2)
Expanded functionality:
l The slave axis continuously follows a freely selectable table.
l At the end of the table, a table switchover can be carried out.
Siehe 'STANDARD_FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2 (FB)' auf Seite 279.
STANDARD_FOLLOW_AXIS_SWITCHING_TABLE_WITH_OUTGEAR (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisSwitchingTableWithOutgear)
Expanded functionality:
l The slave axis continuously follows a freely selectable table.
l At the end of the table, a table switchover can be carried out.
l The table can be modified via a gear ratio (compress and extend).
Siehe 'STANDARD_FOLLOW_AXIS_SWITCHING_TABLE_WITH_OUTGEAR (FB)' auf Seite 288.
STANDARD_FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2 (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisSwitchingTable1Table2)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
l At the end of the table, a table switchover can be carried out.
Siehe 'STANDARD_FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2 (FB)' auf Seite 296.
STANDARD_FOLLOW_TABLE_ENGAGE_DISENG_AXIS (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisTableEngageDiseng)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
Siehe 'STANDARD_FOLLOW_TABLE_ENGAGE_DISENG_AXIS (FB)' auf Seite 314.
STANDARD_FOLLOW_TABLE_START_AUTOSTOP_AXIS (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisTableStartAutoStop)
Expanded functionality:
l The slave axis continuously follows a freely selectable table with a phasing-in and phasing out table.
Siehe 'STANDARD_FOLLOW_TABLE_START_AUTOSTOP_AXIS (FB)' auf Seite 322.
STANDARD_WINDER_DANCER_AXIS (FB)
(Macro: AflImportFollowAxis - AflImportFollowAxisTableEngageDiseng)
Expanded functionality:
The function block 'STANDARD_WINDER_DANCER_AXIS' realizes a dancer winder with the following characteristics with
following features:
l PID regulated dancer winder
l Operation as unwinder and rewinder
l Diameter calculation
l Search diameter at the start of the winder
Siehe 'STANDARD_WINDER_DANCER_AXIS (FB)' auf Seite 330.
STANDARD_WINDER_TORQUE_AXIS (FB)
(Macro: AflImportStandardWinder - AflImportStandardWinderTorque)
Expanded functionality:
l The function block 'STANDARD_WINDER_TORQUE_AXIS' realizes a sensorless rewinder and unwinder with following
features:
l Torque controlled center winder
l Operation as rewinder and unwinder
l Diameter calculation
l Search diameter at the start of the winder
l Determine the reel of inertia of unknown diameter
l Synchronize onto a running web
(Further information: See documentation on application blocks part no. 203694 FB 'WINDER_TORQUE_CONTROL'
Siehe 'STANDARD_WINDER_TORQUE_AXIS (FB)' auf Seite 339.
4.1.2.5.2 Structures
The following access options are available:
Storage location:
CODESYS V2
'Data types' → 'AMK_CONTROL_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_CONTROL_STRUCTURE'
Storage location:
CODESYS V2
'Data types' → 'AMK_CONTROL_STRUCTURE'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_CONTROL_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_CONTROL_STRUCTURE'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_CONTROL_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
1) The 'Command values' are inside the plc program commented out. This is the reason while the values are not updated.
Commented out parts inside plc program see:
l Declaration editor Standard Axis: fbMotion
l Action actSync: plc program code editor: part 'Writing the setpoint values'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'IDs'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'IDs'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'IDs'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'IDs'
User interface
STANDARD_CONTROL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Clear error - boErrorReset boSBM - System ready message
Bus instance - uiBusInstance boNetworkReady - Network ready
boBusReady - Bus ready
boBusWarning - Bus warning
boBusError - Bus error
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Control structure - stControl stControl - Control structure
Device structure - stDevice stDevice - Device structure
boEnable BOOL Enable signal: With a positive edge, the initialisation of the x
block starts.
As long as 'boEnable' = TRUE, the block remains enabled
and is processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer
enabled and is thus no longer processed.
Output variables
Name Type Description Sync. Async.
boBusReady BOOL Bus ready (module, device ready, no errors or warnings, bus x
operational mode)
STANDARD_CONTROL -
User interface
STANDARD_CONTROL_iSA
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Clear error - boErrorReset boSBM - System ready message
Bus instance - uiBusInstance boQUE - Ackn. "DC bus ON"
wErrorID11 - State ID11 'Status class 1-
errors'
boErrTemperature - Error temp. device *
boErrDC_overvoltage - Over voltage DC bus *
boNetworkReady - Network ready
boBusReady - Bus ready
boBusWarning - Bus warning
boBusError - Bus error
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Control structure - stControl stControl - Control structure
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the x
block starts.
As long as 'boEnable' = TRUE, the block remains enabled
and is processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer
enabled and is thus no longer processed.
boBusReady BOOL Bus ready (module, device ready, no errors or warnings, bus x
operational mode)
STANDARD_CONTROL_iSA -
*
Reaction iSA:
No independent response to a temperature or over-voltage fault.
The user must initiate via the PLC program an appropriate action, e. g. activate STO.
The function block 'STANDARD_KE' contains a inhibit time for DC bus ON min. 15 sec off before switching
back on.
See function block 'fbTof'.
User interface
STANDARD_KE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
DC bus On - boUE uiDiagnosticNr - Diagnostics number
Clear error - boFL boQUE - Ackn. "DC bus ON"
boSBM - System ready message
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the x
block starts.
As long as 'boEnable' = TRUE, the block remains enabled
and is processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer
enabled and is thus no longer processed.
boUE BOOL Bit for switching the converter (DC bus voltage on). The x
corresponding return message QUE is a precondition for RF.
Relevant parameters:
ID32795 'Source UE'
Default: 0 (DC Bus Enable with the binary input)
Setting: e.g. Code 5 (DC Bus Enable with the binary input)
STANDARD_KE -
History
Library AmkAfl
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus
no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop cannot
be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating mode
2'. (Hint: By activated automatically parametrisations the bit 6 will be
automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the case
the selection has to be
made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
History
Library AmkAfl
Example:
FB STANDARD_FOLLOW_AXIS_GEAR (manually modified for ihX)
Example:
FB STANDARD_FOLLOW_AXIS_GEAR (original)
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus
no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop cannot
be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating mode
2'. (Hint: By activated automatically parametrisations the bit 6 will be
automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boExec_ BOOL Enable signal: With a positive edge, the axis moves continuous as long as x
Interpose a positive edge at input boInterpose_Interpose starts the interpose
positioning.
diPosWindow_ DINT Range window for the message 'In position' (boInPos_Interpose) x
Interpose Unit: incr/s
Default value: 1000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the case
the selection has to be
made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
boDone_Interpose BOOL Response that the function block has been completely x
executed.
boBusy_Interpose BOOL Execution message: This bit remains set as long as the block x
is being processed.
STANDARD_AXIS STANDARD_AXIS.actSync
PM function description
Abbreviation: PM printing mark
Based on the
l acceleration and deceleration values a (udAccelPM and udDecelPM [s²])
l movement s (diFormatPM [increments]) + offset [increments]
l and time t in which the positioning must be completed (udTimeForPosPM [ms])
the FB calculates a movement profile.
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnablePM BOOL Enables the BS. The entered values are checked and the movement x
profile is calculated.
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Table selection: boEnabOpTab2
Pointer to table 1: pstOpTab1
Pointer to table 2: pstOpTab2
Relevant parameters:
Distance between two PMs: diFormatPM
Distance to PM: diOffsetPM
PM window: diWindowPM
Acceleration: udAccelPM
Deceleration: udDecelPM
Max. positioning time: iudTimeForPosPM
Max. correction value: diMaxCorrection
Max. lost PM: usiNoLostPM
Relevant variables:
Homing velocity: diSpeedHomePM
Offset: diOffsetPM
diWindowPM DINT Window in which the marks must be located for detection (+/- target x
position)
Unit: Increments
Default value: 20480
usiNoLostPM USINT Once the preset number of marks is lost, an error message is generated. x
Default 0 = Error message is never generated
Unit: Increments
Default value: 10
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
boDone BOOL Response that the function block has been completely x
executed.
boRefPuls BOOL For one cycle boRefPuls = TRUE when the latch value is x
changed.
diDeviationPM DINT Deviation between actual and target position of the last found x
PM.
Unit: Increments
STANDARD_AXIS STANDARD_AXIS.actSync
User interface
STANDARD_AXIS_PRINTMARK_INSETTER_CONT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Controller enable - boRF boSBM - System ready message
Clear error - boFL boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boErr - Error
Start speed control - boSpeed iErrID - Error ID
Start homing cycle - boHome enErrName - Name of faulty FB
Start absolute pos. - boPosAbs boPosBusy - Positioning active
Start relative pos. - boPosRel boJogBusy - Jog mode active
Jog plus - boJogPlus boHomeBusy - Homing drive active
Jog minus - boJogMinus boSpeedBusy - Speed control active
Positioning velocity - udPosVelocity boEnabAckPmInsetterCont - Printmark block initialized
and activated
Target position - diPosition boParameterSetupDone - Parameterisation finished
Acceleration - lreAccel boPmDetected - Print mark detected
Deceleration - lreDecel boPmLost - Print mark lost
Jerk limit at start - lreJerkStart boPmWnd - Print mark window active
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block x
starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_
ID32919_PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6
will be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp
[default value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnablePmInsetterCo BOOL Enable signal: With a positive edge, the initialisation of the block x
nt starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC. The input increment detection is enabled.
Increment changes at the input 'diInVal' lead to a change of the
master reference point.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used x
as an offset to shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a x
positive edge of 'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All
following print marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to
the actual master position. The following print marks are adjusted to
this position
iNoPmLost INT Number of print marks to be missed in succession, before the output x
'boPmLost' is set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark x
relatively to the actual master position on a positive edge of
'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreS DINT Actual position value (zero offset) at start of the correction control, x
et related to the master increments / format [increments]
diCorrOutControl2PreS Example:
et If the controlled drive is positioned in the middle of the format when
starting the correction control, >format/2< must be set on a 0 -> 1
edge of 'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark x
setpoint position by parameter 'diPmSetupPos' if 'boSetupPmPos' =
TRUE
Options:
enAutomaticSelection Automatic determination if 32 bit or 64
bit arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has
to be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
diPmDeviation DINT Deviation between setpoint and actual position of the actual x
print mark
diOpOffsetOut DINT Output value contains the actually output operator offset x
STANDARD_AXIS_PRINTMARK_INSETTER_CONT STANDARD_AXIS_PRINTMARK_INSETTER_
CONT.actSync
History
Library AmkAfl
User interface
STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Controller enable - boRF boSBM - System ready message
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block x
starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and
is thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_
ID32919_PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set
point velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary
operating mode 2'. (Hint: By activated automatically
parametrisations the bit 6 will be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp
[default value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_
known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnablePmInsetterInterv BOOL Enable signal: With a positive edge, the initialisation of the block x
al starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC. The input increment detection is enabled.
Increment changes at the input 'diInVal' lead to a change of the
master reference point.
In the state 'boEnable' = FALSE the block is no longer enabled and
is thus no longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used x
as an offset to shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a x
positive edge of 'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All
following print marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to
the actual master position. The following print marks are adjusted to
this position
diPmSetupPos DINT The parameter specifies the nominal position of the print mark x
relatively to the actual master position on a positive edge of
'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, x
diCorrOutControl2PreSet related to the master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when
starting the correction control, >format/2< must be set on a 0 -> 1
edge of 'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark x
setpoint position by parameter 'diPmSetupPos' if 'boSetupPmPos'
= TRUE
Options:
enAutomaticSelection Automatic determination if 32 bit or 64
bit arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has
to be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
diOpOffsetOut DINT Output value contains the actually output operator offset x
STANDARD_AXIS_PRINTMARK_INSETTER_INTERVAL STANDARD_AXIS_PRINTMARK_INSETTER_
INTERVAL.actSync
History
Library AmkAfl
User interface
STD_AXIS_PRINTMARK_REGISTER_CONTROL_CONT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Controller enable - boRF boSBM - System ready message
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block x
starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and
is thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is
slowed down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_
ID32919_PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set
point velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary
operating mode 2'. (Hint: By activated automatically
parametrisations the bit 6 will be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp
[default value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_
known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnablePmRegisterCtrlC BOOL Enable signal: With a positive edge, the initialisation of the block x
ont starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC. The input increment detection is enabled.
Increment changes at the input 'diInVal' lead to a change of the
master reference point.
In the state 'boEnable' = FALSE the block is no longer enabled and
is thus no longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is x
used as an offset to shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a x
positive edge of 'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All
following print marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively
to the actual master position. The following print marks are
adjusted to this position
diPmSetupPos DINT The parameter specifies the nominal position of the print mark x
relatively to the actual master position on a positive edge of
'boStartPmDet'.
The detected print marks are controlled to this position
[increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, x
diCorrOutControl2PreSet related to the master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when
starting the correction control, >format/2< must be set on a 0 -> 1
edge of 'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark x
setpoint position by parameter 'diPmSetupPos' if 'boSetupPmPos'
= TRUE
Options:
enAutomaticSelection Automatic determination if 32 bit or 64
bit arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has
to be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
diPmDeviation DINT Deviation between setpoint and actual position of the actual x
print mark
diOpOffsetOut DINT Output value contains the actually output operator offset x
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_ STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_
CONT CONT.actSync
History
Library AmkAfl
User interface
STD_AXIS_PRINTMARK_REGISTER_CONTROL_DISCONT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block x
starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled
and is thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is
slowed down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_
ID32919_PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive
is accelerate or decelerate from the current velocity to the new
set point velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary
operating mode 2'. (Hint: By activated automatically
parametrisations the bit 6 will be automatically overwritten with
1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp
[default value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_
known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnablePmRegisterCtrlDisc BOOL Enable signal: With a positive edge, the initialisation of the block x
ont starts.
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC. The input increment detection is enabled.
Increment changes at the input 'diInVal' lead to a change of the
master reference point.
In the state 'boEnable' = FALSE the block is no longer enabled
and is thus no longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is x
used as an offset to shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on x
a positive edge of 'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All
following print marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively
to the actual master position. The following print marks are
adjusted to this position
diPmSetupPos DINT The parameter specifies the nominal position of the print mark x
relatively to the actual master position on a positive edge of
'boStartPmDet'.
The detected print marks are controlled to this position
[increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction x
diCorrOutControl2PreSet control, related to the master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format
when starting the correction control, >format/2< must be set on a
0 -> 1 edge of 'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark x
setpoint position by parameter 'diPmSetupPos' if
'boSetupPmPos' = TRUE
Options:
enAutomaticSelection Automatic determination if 32 bit or
64 bit arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has
to be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_ STANDARD_AXIS_PRINTMARK_REGISTER_CONTROL_
DISCONT DISCONT.actSync
History
Library AmkAfl
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus
no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop cannot
be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating mode
2'. (Hint: By activated automatically parametrisations the bit 6 will be
automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Multiplier: diMultiplier
Divider: udDivider
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the case
the selection has to be
made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
History
Library AmkAfl
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Table selection: boEnabOpTab2
Pointer to table 1: pstOpTab1
Pointer to table 2: pstOpTab2
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Table selection: boEnabOpTab2
Pointer to table 1: pstOpTab1
Pointer to table 2: pstOpTab2
Table modification multiplier: iGearMultiplier
Table modification divider: uiGearDivider
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Phasing-in range: udInVal
Phasing-out range: udOutVal
Table selection: boEnabOpTab2
Table function control: boTableControl
Pointer to phasing-in table: pstInTab
Pointer to phasing-out table: pstOutTab
Pointer to table 1: pstOpTab1
Pointer to table 2: pstOpTab2
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Pointer to table: pstOpTab
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
History
Library AmkAfl
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Phasing-in range: udInVal
Phasing-out range: udOutVal
Table function control: boTableControl
Pointer to phasing-in table: pstInTab
Pointer to phasing-out table: pstOutTab
Pointer to table: pstOpTab
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_AXIS STANDARD_AXIS.actSync
History
Library AmkAfl
actSync
- Synchronous operation - opened in synchronous program -
section (FPLC_PRG)
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed
down from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Setpoint specification: diInVal
Phasing-in range: udInVal
Phasing-out range: udOutVal
Table function control: boTableControl
Pointer to phasing-in table: pstInTab
Pointer to phasing-out table: pstOutTab
Pointer to table: pstOpTab
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by
the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_FOLLOW_TABLE_START_AUTOSTOP_AXIS STANDARD_FOLLOW_TABLE_START_AUTOSTOP_
AXIS.actSync
History
Library AmkAfl
Setpoints and current values are transferred in a synchronous action. The synchronous action must be called in the synchronous
program level FPLC_PRG.
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus
no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_ BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
Stop along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnableWinder BOOL Enable signal: With a positive edge, the initialisation of the winder block x
starts.
As long as 'boEnableWinder' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnableWinder' = FALSE the block is no longer enabled and
is thus no longer processed.
boOutputSpeed BOOL Output web speed as the speed setpoint for motor x
boDmOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit x
'boDmPreset' is automatically reset after set.
Diameter status "known": The diameter value is interpreted as valid
diameter, that is, acceleration and friction torques are calculated.
boDmNokPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit x
'boDmPreset' is automatically reset after set.
Diameter status "unknown": The diameter value is interpreted as invalid
diameter, that is, acceleration and friction torques are calculated.
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
boDmLimit BOOL Diameter was calculated, and the result was outside of x
'ST_WINDER_DANCER_CONTROL_CONFIG.iDmMin' and
'ST_WINDER_DANCER_CONTROL_CONFIG.iDmMax', the
value was limited accordingly
STANDARD_WINDER_DANCER_AXIS STANDARD_WINDER_DANCER_AXIS.actSync
History
Library AmkAfl
User interface
STANDARD_WINDER_TORQUE_AXIS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Controller enable - boRF boSBM - System ready message
Clear error - boFL boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boErr - Error
Start speed control - boSpeed iErrID - Error ID
Start homing cycle - boHome enErrName - Name of faulty FB
Start absolute pos. - boPosAbs boPosBusy - Positioning active
Start relative pos. - boPosRel boJogBusy - Jog mode active
Jog plus - boJogPlus boHomeBusy - Homing drive active
Jog minus - boJogMinus boSpeedBusy - Speed control active
Positioning velocity - udPosVelocity boEnabAcknWinder - Winder initialised and
enabled
Target position - diPosition boDmOk - Diameter ok, status "known"
Acceleration - lreAccel boFindInertiaDone - Inertia moment determined
Deceleration - lreDecel boWindRuns - Wind runs
Jerk limit at start - lreJerkStart boSyncRuns - Synchronize runs
Jerk limit at stop - lreJerkEnd boDmLimit - Diameter was limited
Jog velocity - udVelocityJog iActDm - Actual value diameter
Velocity for speed control - diSpeedVelocity diActValWebSpeed - Actual value web speed
Enable winder - boEnableWinder diActMotorSpeedAbs - Actual motor speed absolute
Activation of the diameter - boDmCalc diActReelPosAbs - Actual reel position absolute
calculation
Determination the inertia - boFindInertia
moment of the reel
Wind on - boWind
Synchronize on - boSync
Set diameter - boDmPreset
Set diameter, status - boDmOkPreset
"known"
Set diameter, status - boDmNOkPreset
"unknown"
Set diameter status of - boDmReset
"known" → "Unknown"
Set output 'boDmOk' - boSetDmOk
Setpoint web tension - diWebTension
Diameter preset value - iDmPreset
Actual speed motor - diActMotorSpeed
Actual reel position - diActReelPos
Actual web position - diActWebPos
32bit or 64bit arithmetic - enArithmetik1)
Axis structure - stAxisDrive stAxisDrive - Axis structure
Device structure - stDevice stDevice - Device structure
Configuration structure - stWinderConfig stWinderConfig - Configuration structure
winder winder
- -
Input variables
Name Type Description Sync. Async.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts. x
As long as 'boEnable' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is
thus no longer processed.
Relevant parameters:
ID32796 'Source RF'
Allowed:
Code 5: 'Controller enable via EtherCAT'
Code 25: RF 'via EtherCAT AND-linked with the binary input UE'
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero x
along the emergency-stop ramp. Once initiated, an emergency stop
cannot be aborted.
Relevant variables:
EMERGENCY STOP ramp: Ramp time in which the drive is slowed down
from
the current velocity to zero.
EMERGENCY STOP ramp: ST_AXIS_DRIVE.ST_IDS.ST_ID32919_
PlcList. diID32919_05_diEmergency_StopRamp
Unit: ms
Default value: 100 ms
Variation 2
The variable diVelocityRamp is the Ramp time in which the drive is
accelerate or decelerate from the current velocity to the new set point
velocity.
Requirement: Setting bit 6 = 0 in ID32800 'AMK secondary operating
mode 2'. (Hint: By activated automatically parametrisations the bit 6 will
be automatically overwritten with 1).
Relevant parameters:
ID32802 'AMK secondary operating mode 2'
[Operating mode: Speed control]
[Setpoint source: diMainSetpoint (code 41h)]
[Ramps: active / inactive (bit 6)]
ID32780 'Acceleration ramp'
ID32781'Deceleration ramp'
Relevant variables:
Speed setpoint: diSpeedVelocity
Velocity ramp: STANDARD_AXIS.fbVelocity.diVelocityRamp [default
value: 100 ms]
Speed control active: boSpeedBusy
Relevant parameters:
ID41 'Homing velocity'
ID147 'Homing parameter'
ID150 'Homing offset 1'
ID32926 'AMK homing cycle parameter'
Relevant variables:
Homing drive active: boHomeBusy
Homing done: boDone
Homing point known: stAxisDrive.stStatus.boID33036_RFP_known
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Positioning velocity: udPosVelocity
Target position: diPosition
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Positioning active: boPosBusy
Positioning done: boDone
Relevant parameters:
ID32801 'AMK secondary operating mode 1'
[Operating mode: position control]
[Setpoint source: diMainSetpoint (code 41h)]
Relevant variables:
Jog velocity: udVelocityJog
Acceleration: lreAccel
Deceleration: lreDecel
Jerk limitation (start): lreJerkStart
Jerk limitation (end): lreJerkEnd
Jog mode active: boJogBusy
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode x
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode x
Unit incr/s3
Default 10000000
boEnableWinder BOOL Enable signal: With a positive edge, the initialisation of the winder block x
starts.
As long as 'boEnableWinder' = TRUE, the block remains enabled and is
processed by the PLC.
In the state 'boEnableWinder' = FALSE the block is no longer enabled
and is thus no longer processed.
boFindInertia BOOL Determination the inertia moment of the reel and tightening web on x
boDmPreset BOOL Set diameter value of the input 'iDmPreset'. The input bit is automatically x
reset after set.
boDmOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit x
'boDmPreset' is automatically reset after set.
Diameter status "known": The diameter value is interpreted as valid
diameter, that is, acceleration and friction torques are calculated.
boDmNOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit x
'boDmPreset' is automatically reset after set.
Diameter status "unknown": The diameter value is interpreted as invalid
diameter, that is, acceleration and friction torques are calculated.
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit
arithmetic (Default)
The default setting
'enAutomaticSelection'
can only be used, if the
PLC controller is on the
first place in the
CODESYS 'Device_
Config'. Is that not the
case the selection has to
be made manually by the
user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
STANDARD_WINDER_TORQUE_AXIS STANDARD_WINDER_TORQUE_AXIS.actSync
History
Library AmkAfl
4.2.1.1 05_StandardLevel
User interface
COMPARE_2VALUES
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Size of window - diWindow boEquality - Equality
Comparative value 1 - diVal1
Comparative value 2 - diVal2
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diWindow DINT Parameter for entry of the window size [same unit as the comparison values]
Output variables
Name Type Description
boEquality BOOL Comparison value 1 = comparison value 2 within the specified window
User interface
fboCompare_ActVal_GT_Threshold
Input value - diInVal fboCompare_ActVal_GT_ - Return bit
Threshold
Threshold value - diThreshold
Input variables
Name Type Description
Output variables
Name Type Description
4.2.1.1.2.1 Support
POSITION_1_A4 (FB)
The function block 'POSITION_1_A4' is a basic module for relative positioning. It positions an AMK axis relatively resp. relatively
and retriggerably.
The function block is called in the synchronous program level FPLC_PRG.
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
Anwender Interface
POSITION_1_A4
Selection mode - enMode boDone - Ackn. "FB done"
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Execution started - boStart bo0Vel - No setpoint output
Stop - boStop boSetVel - Setpoint velocity reached
Emergency stop - boNotHalt boSetPos - Setpoint position reached
(retriggerable)
Target position - diPosition boErr - Error
Acceleration - lreAccel iErrId - Error ID
Deceleration - lreDecel diOutOffs - Offset
Emergency stop ramp - lreDecelNotHalt lreActVelocity - Actual velocity
Velocity - lreVelocity lreActAccel - Actual acceleration
Jerk on start - lreJerkStart diOutVal - Output value
Jerk on stop - lreJerkEnd
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStart BOOL With a positive edge, the execution of the block starts.
boNotHalt BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
lreDecelNotHalt LREAL Emergency stop ramp; deceleration in case of emergency stop. The value entered
is valid for deceleration from actual speed to speed 0
Unit incr/s2
lreJerkStart LREAL Jerk limitation (start) for positioning and jog mode
Unit incr/s3
Default 10000000
lreJerkEnd LREAL Jerk limitation (end) for positioning and jog mode
Unit incr/s3
Default 10000000
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boSetVel BOOL When 'boSetVel' is active, the target velocity has been reached.
boSetPos BOOL In retrigger mode the signal for a cycle becomes active when the retrigger position
has been reached.
diOutOffs DINT Offset value before the retrigger is started; only in retrigger mode
POSITION_1_A4
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User Interface
POSITION_JERK_1_A5
Selection mode - enMode boDone - Ackn. "FB done"
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Execution started - boStart bo0Vel - No setpoint output
Stop - boStop boSetVel - Setpoint velocity reached
Emergency stop - boNotHalt boSetPos - Setpoint position reached
(retriggerable)
Target position - diPosition boErr - Error
Positioning acceleration - lreAccel iErrID - Error ID
Positioning deceleration - lreDecel diOutOffs - Offset
Emergency stop ramp - lreDecelNotHalt lreActVelocity - Actual velocity value
Positioning velocity - lreVelocity lreActAccel - Actual acceleration
Jerk on start - lreJerkStart diOutVal Output value
Jerk on stop - lreJerkEnd
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStart BOOL With a positive edge, the execution of the block starts.
boStop BOOL With a positive edge, the execution of the block is aborted or completed.
boNotHalt BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
lreDecelNotHalt LREAL EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boSetVel BOOL When 'boSetVel' is active, the target velocity has been reached.
boSetPos BOOL In retrigger mode the signal for a cycle becomes active when the retrigger position
has been reached.
diOutOffs DINT Offset value before the retrigger is started; only in retrigger mode
POSITION_JERK_1_A5
User interface
POSITION_ABSOLUT
FB execution - boExec boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Emergency stop ramp - diEmergency_StopRamp boInPos - In position
Target position - diPosition boErr - Error
Positioning velocity - lreVelocity iErrID - Error ID
Positioning acceleration - lreAccel enErrName - Name of faulty FB
Target position window - diPosWindow
Actual position value - diActPosition
32bit or 64bit arithmetic - enArithmetik1)
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
1) Only for CODESYS V3
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
diPosWindow DINT Position window: Window within which the InPos bit is set. [Increments]
Default: 1000 increments
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_ABSOLUT
User interface
POSITION_ABSOLUT_VAJ
FB execution - boExec boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Emergency stop ramp - diEmergency_StopRamp boInPos - In position
Target position - diPosition lreActVelocity - Positioning velocity
Positioning acceleration - lreAccel lreActAccel - Positioning acceleration
Positioning deceleration - lreDecel boErr - Error
Positioning velocity - lreVelocity iErrID - Error ID
Jerk on start - lreJerkStart enErrName - Name of faulty FB
Jerk on stop - lreJerkEnd
Target position window - diPosWindow
Actual position value - diActPosition
32bit or 64bit arithmetic - enArithmetik1)
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
1) Only for CODESYS V3
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
diPosWindow DINT Position window: Window within which the InPos bit is set. [Increments]
Default: 1000 increments
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_ABSOLUT_VAJ
User interface
POSITION_CHECK_LIMIT_SWITCH
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Adapt target position - boAdaptTargetPosition boLimitOk - Target position in limit
Limit of end position - diLimit1 diTargetPosition - Output target position
Limit of end position - diLimit2
Positioning target - diTarget
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boAdaptTargetPosition BOOL Modification of the target position according to the end position when exceeding
the end position
Output variables
Name Type Description
boLimitOk BOOL The output target position is in the end-position limits. This bit can be used to
initiate positioning.
diTargetPosition DINT Output of the checked target position. This output can be used as target position
for positioning.
User interface
POSITION_HOMING_FIXED_STOP
FB execution - boExec boDone - Ackn. "FB done"
Reset - boReset boRpfKnown - Homing position known
Waiting time - tWait boHomeBusy - Process active
Ackn."Controller enable" - boQRF boSetHomePos - Fixed stop reached
Standstill - boZeroVelocityWindow
Torque threshold - boTorqueLimit
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
With a positive edge on this input, the output 'boHomeBusy' is set.
boReset BOOL Resets the output message 'boRpfKnown' (Homing position known)
tWait TIME Dwell time at fixed stop until the outputs 'boRpfKnown' and 'boSetHomePos' are
set. [ms]
Default: 500 ms
Output variables
Name Type Description
POSITION_HOMING_FIXED_STOP
User interface
POSITION_JERK_1
Selection mode - enMode boDone - Ackn. "FB done"
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Execution started - boStart bo0Vel - No setpoint output
Stop - boStop boSetVel - Setpoint velocity reached
Emergency stop - boNotHalt boSetPos - Setpoint position reached
(retriggerable)
Target position - diPosition boErr - Error
Positioning acceleration - lreAccel iErrID - Error ID
Positioning deceleration - lreDecel diOutOffs - Offset
Emergency stop ramp - lreDecelNotHalt lreActVelocity - Actual velocity value
Positioning velocity - lreVelocity lreActAccel - Actual acceleration
Jerk on start - lreJerkStart diOutVal - Output value
Jerk on stop - lreJerkEnd
32bit or 64bit arithmetic - enArithmetik1)
Device structure - stDevice stDevice - Device structure
1) Only for CODESYS V3
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStart BOOL With a positive edge, the execution of the block starts.
boStop BOOL With a positive edge, the execution of the block is aborted or completed.
boNotHalt BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
lreDecelNotHalt LREAL EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boSetVel BOOL When 'boSetVel' is active, the target velocity has been reached.
boSetPos BOOL In retrigger mode the signal for a cycle becomes active when the retrigger position
has been reached.
diOutOffs DINT Offset value before the retrigger is started; only in retrigger mode
POSITION_JERK_1
User interface
POSITION_RELATIV
FB execution - boExec boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Emergency stop ramp - diEmergency_StopRamp boInPos - In position
Target position - diPosition boErr - Error
Positioning velocity - lreVelocity iErrID - Error ID
Positioning acceleration - lreAccel enErrName - Name of faulty FB
Target position window - diPosWindow
Actual position value - diActPosition
32bit or 64bit arithmetic - enArithmetik1)
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
1) Only for CODESYS V3
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
diPosWindow DINT Position window: Window within which the InPos bit is set. [Increments]
Default: 1000 increments
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_RELATIV
User interface
POSITION_RELATIV_INTERPOSED
FB execution - boExec boDone - Ackn. "FB done"
Start interposed positioning - boInterpose boBusy - FB in progress
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
Target position (relative) - diPosition enErrName - Name of faulty FB
Correction of position - diOffset boInPos - In position
setpoint
Acceleration - udAccel bo0Vel - Velocity = 0
Deceleration - udDecel boSetVel - Setpoint velocity reached
Velocity - udVelocity
Target position window - diPosWindow
Actual position value - diActPosition
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
boSetVel BOOL When 'boSetVel' is active, the target velocity has been reached.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_RELATIV_INTERPOSED
User interface
POSITION_RELATIV_RETRIGGER_VAJ
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Execution started - boStart boDone - Ackn. "FB done"
Stop - boStop boBusy - FB in progress
Emergency stop - boEmergency_Stop boInPos - In position
Emergency stop ramp - diEmergency_StopRamp lreActVelocity - Actual velocity value
Target position - diPosition lreActAccel - Actual acceleration
Acceleration - lreAccel bo0Vel - No setpoint output
Deceleration - lreDecel boSetVel - Setpoint velocity reached
Positioning velocity - lreVelocity boSetPos - Setpoint position reached
(retriggerable)
Jerk on start - lreJerkStart diOutOffs - Offset
Jerk on stop - lreJerkEnd boErr - Error
Target position window - diPosWindow iErrID - Error ID
Actual position value - diActPosition enErrName - Name of faulty FB
32bit or 64bit arithmetic - enArithmetik1)
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
1) Only for CODESYS V3
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStart BOOL With a positive edge, the execution of the block starts.
boStop BOOL With a positive edge, the execution of the block is aborted or completed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
boSetVel BOOL When 'boSetVel' is active, the target velocity has been reached.
boSetPos BOOL In retrigger mode the signal for a cycle becomes active when the retrigger position
has been reached.
diOutOffs DINT Offset value before the retrigger is started; only in retrigger mode
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_RELATIV_RETRIGGER_VAJ
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
diPosWindow DINT Position window: Window within which the InPos bit is set. [Increments]
Default: 1000 increments
Options:
enAutomaticSelection Automatic determination if 32 bit or 64 bit arithmetic
(Default)
The default setting
'enAutomaticSelection' can only
be used, if the PLC controller is on
the first place in the CODESYS
'Device_Config'. Is that not the
case the selection has to be made
manually by the user.
en64BitArithmetik 64 bit arithmetic
en32BitArithmetik 32 bit arithmetic
If the automatic determination does not work, the following diagnostic number is
displayed and the selection must done manually by the user.
iErrID 5
Additional information about 'EN_POS_J_ARITHMETIK' and manual selection:
Siehe 'EN_POS_J_ARITHMETIK' auf Seite 601.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boInPos BOOL Message "InPosition": Actual position = target position within the position window
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
POSITION_RELATIV_VAJ
4.2.1.1.3 04_Manual
User interface
MANUAL_DETERMINE_INERTIA
FB execution - boExec boDone - Ackn. "FB done"
Maximum torque - diMaxTorque boBusy - FB in progress
Time out - tTimeOut boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
act sync
Maximum velocity - diMaxVelocity reInertia - Inertia
Actual velocity value - diActVelocity diSetSpeed - Velocity setpoint
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
enErrName = NONE
iErrID Meaning
1 Incorrect entry: Required input variables contain values ≤ 0
=> check input variables
2 Timeout: Within 'tTimeOut', the drive did not accelerate to
'diMaxVelocity'
=> increase 'diMaxTorque' if necessary
enErrName ≠ NONE
Error number according to 'enErrName'
MANUAL_DETERMINE_INERTIA MANUAL_DETERMINE_INERTIA.actSync
User interface
MANUAL_JOG
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Emergency stop ramp - diEmergency_StopRamp boErr - Error
Jog mode positive - boPlus iErrID - Error ID
Jog mode negative - boMinus enErrName - Name of faulty FB
Jog velocity - udVelocity
Jog acceleration - udAccel
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
MANUAL_JOG
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
MANUAL_JOG_VAJ
User interface
MANUAL_STEP
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
Jog mode positive - boPlus enErrName - Name of faulty FB
Jog mode negative - boMinus
Increments - diStep
Step velocity - udVelocity
Step acceleration - udAccel
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
boPlus / boMinus BOOL Jog in positive or negative direction. The drive stops positioning when the signal
drops out before reaching the end position.
diStep DINT Step width: Maximum distance that is travelled when holding down the Jog button
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
MANUAL_STEP
User interface
MANUAL_VELOCITY
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value Velocity - diInVal bo0Velocity - No setpoint output
Emergency stop - boEmergency_Stop diOutVal - Output value Velocity
Emergency stop ramp - diEmergency_StopRamp
Velocity ramp - diVelocityRamp
SERCOS cycle time - diID2_SERCOS_cycle
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
MANUAL_VELOCITY
User interface
MANUAL_VELOCITY_1
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop bo0Velocity - No setpoint output
Emergency stop ramp - diEmergency_StopRamp diOutVal - Output value Velocity
Input value Velocity - diInVal
Velocity ramp - diVelocityRamp
SERCOS cycle time - diID2_SERCOS_cycle
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
MANUAL_VELOCITY_1
4.2.1.1.4 06_Follow
Operation mode
The operation mode is divided to
o enMode = CAM_CONT_INC; incremental evaluation of input values
User interface
FOLLOW_AXIS_CAM_CONT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Selection mode Betriebsart - enMode boErr - Error
Input value - diInVal iErrID - Error ID
Modulo value - udModulo enErrName - Name of faulty FB
Filter time - tFilter boOutVal - Output signal
Delay time - tDelay
Hysteresis - uiHyst
Number of cams - uiNumberOfCams
Switch-on position cam 1 - di1CamPositionOn
Switch-off position cam 1 - di1CamPositionOff
- :
- :
Switch-on position cam 16 - di16CamPositionOn
Switch-off position cam 16 - di16CamPositionOff
Device structure - stDevice stDevice - Device structure
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
tDelay TIME Dead-time constant . Time to calculate the offset of the binary information which
depends on the actual velocity
(default = 0 = inactive)
If 'enMode' = CAM_CONT_INC:
XOff > XOn: H < Modulowert – (XOff – XOn)
XOff < XOn: H < XOn – XOff
Output variables
Name Type Description
FOLLOW_AXIS_CAM_CONT
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEnabOpTab2 BOOL l For 'boEnabOpTab2' = TRUE, the second operating table is enabled;
switching is performed at the coordinate origin.
l With 'boEnabOpTab2' = FALSE, operating table 1 is used again. This
switch is also performed at the coordinate origin.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_CONTINUOUS_TAB1_TAB2_OUTGEAR32
User interface
FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Enable operating table - boEnabOpTab2 boTab1Busy - Table in progress
Emergency stop - boEmergency_Stop boTab2Busy - Table in progress
Emergency stop ramp - diEmergency_StopRamp boDone - Ackn. "table done"
SERCOS cycle time - diID2_SERCOS_cycle boErr - Error
Input value - diInVal iErrID - Error ID
Operating table - pstOpTab1 enErrName - Name of faulty FB
Operating table - pstOpTab2
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEnabOpTab2 BOOL l For 'boEnabOpTab2' = TRUE, the second operating table is enabled;
switching is performed at the coordinate origin.
l With 'boEnabOpTab2' = FALSE, operating table 1 is used again. This
switch is also performed at the coordinate origin.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_CONTINUOUS_TABLE1_TABLE2
o Sinus curve
o Sinus² curve
By means of an offset at the start of the movement, the curve can be synchronised to an external starting point.
User interface
FOLLOW_AXIS_CRANK_DRIVE_EMULATION
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Start crank drive - boControl boCamEnabAck - Ackn. crank drive active
Input value - diInVal boInAck - End of engage table
calculation mode - enShape boOpAck - End of work table
boOutAck - End of disengage table
boErr - Error
iErrID - Error ID
actSync
Start offset - diOffSet diOutVal - Output value
standstill range - diStillStand
increments per rotation - diMasterInc
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diMasterInc DINT Number of increments per revolution (without start - offset) [incr.]
FOLLOW_AXIS_CRANK_DRIVE_EMULATION FOLLOW_AXIS_CRANK_DRIVE_EMULATION.actSync
User interface
FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Enable operating table - boEnabOpTab2 boTab1Busy - Table in progress
FB execution - boExec boTab2Busy - Table in progress
Emergency stop - boEmergency_Stop boDone - Ackn. "table done"
Emergency stop ramp - diEmergency_StopRamp boErr - Error
SERCOS cycle time - diID2_SERCOS_cycle iErrID - Error ID
Input value - diInVal enErrName - Name of faulty FB
Phasing in angle - udInAngle
Phasing out angle - udOutAngle
Phasing in table - pstInTab
Operating table - pstOpTab1
Operating table - pstOpTab2
Phasing out table - pstOutTab
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEnabOpTab2 BOOL l For 'boEnabOpTab2' = TRUE, the second operating table is enabled;
switching is performed at the coordinate origin.
l With 'boEnabOpTab2' = FALSE, operating table 1 is used again. This
switch is also performed at the coordinate origin.
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
udInAngle / udOutAngle UDINT Phase in or phase out range on the table X-axis.
This values specifies the maximum table X-position from the coordinate origin (0)
at which phasing in or phasing out is still permissible. (0... udInAngle)
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_SWITCHING_TABLE1_TABLE2
User interface
FOLLOW_AXIS_TABLE_CONTINUOUS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boErr - Error
Emergency stop - boEmergency_Stop iErrID - Error ID
Emergency stop ramp - diEmergency_StopRamp enErrName - Name of faulty FB
SERCOS cycle time - diID2_SERCOS_cycle -
Operating table - pstOpTab -
Position setpoint - diSetPosition diSetPosition - Position setpoint
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_TABLE_CONTINUOUS
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
udInAngle / udOutAngle UDINT Phase in or phase out range on the table X-axis.
This values specifies the maximum table X-position from the coordinate origin (0)
at which phasing in or phasing out is still permissible. (0... udInAngle)
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_TABLE_ENGAGE_DISENGAGE
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_TABLE_START_AUTOSTOP
The function block 'FOLLOW_AXIS_TABLE_START_AUTOSTOP_1' is substantially equal to the function block 'FOLLOW_AXIS_
TABLE_START_AUTOSTOP'.
The two blocks differ as follows:
l The pointer to the following tables are constantly accept when 'boEnable' = TRUE. An 0→1 edge change at 'boEnable' is
no longer necessary
l If only one operating table passed, the output value will stop automatically at the end of the operating table. The table is so
executed at least once. The phasing in and phasing out cycle is eliminated. In this case, the operating table is used for the
phasing in and phasing out cycle of the function block 'FOLLOW_AXIS_TABLE_START_AUTOSTOP'. The automatic stop
is possible after a minimum of 3 passes.
It is possible to transfer operating tables with more than 360 support points to the block.
User interface
FOLLOW_AXIS_TABLE_START_AUTOSTOP_1
FB enable - boEnable boEnabAck - Ackn. "FB enable"
FB execution - boExec boBusy - FB in progress
Emergency stop - boEmergency_Stop boDone - Ackn. "table done"
Emergency stop ramp - diEmergency_StopRamp boErr - Error
SERCOS cycle time - diID2_SERCOS_cycle iErrID - Error ID
Input value - diInVal enErrName - Name of faulty FB
Number of table operations - uiOpNo
Phasing in angle - udInAngle
Phasing in table - pstInTab
Operating table - pstOpTab
Phasing out table - pstOutTab
Position setpoint - diSetPosition diSetPosition - Position setpoint
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from
the current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be
followed) [increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_AXIS_TABLE_START_AUTOSTOP_1
User interface
FOLLOW_RATIO_INC_64
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
SERCOS cycle time - diID2_SERCOS_cycle enErrName - Name of faulty FB
Input value - diInVal
Gear multiplier - diMultiplier
Gear divider - udDivider
Position setpoint - diSetPosition diSetPosition - Position setpoint
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
diInVal DINT Input increments from master encoder (increment source that should be followed)
[increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
FOLLOW_RATIO_INC_64
The call of this function block is permissible in both the asynchronous program section PLC_PRG as well as the synchronous
program section FPLC_PRG.
User interface
CALC_PROF_2_FORMAT_POLY
FB execution - boExec boDone - Ackn. "FB done"
End value X and Y axis - diXYEndValue
Format - rFormat1
Format - rFormat2
Perimeter - rPerimeter
Point on X axis - diPointX1
Point on X axis - diPointX2
Table value - arTab_A arTab_A - Table value
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
The call of this function block is permissible in both the asynchronous program section PLC_PRG as well as the synchronous
program section FPLC_PRG.
User interface
CONVERT_ANALOG_TO_DIGITAL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Analog input value - reAnalogInput wDigitalOutput - Digital output value
Digital start point - wDigitalStartPoint
Analog start point - reAnalogStartPoint
Digital end point - wDigitalEndPoint
Analog end point - reAnalogEndPoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
reAnalogInput REAL Analog input value that is to be converted into a digital value
wDigitalStartPoint WORD Digital value of the 1st value pair to determine the conversion line; y0
reAnalogStartPoint REAL Analog value of the 1st value pair to determine the conversion line; x0
wDigitalEndPoint WORD Digital value of the 2nd value pair to determine the conversion line; y1
reAnalogEndPoint REAL Analog value of the 2nd value pair to determine the conversion line; x1
Output variables
Name Type Description
The call of this function block is permissible in both the asynchronous program section PLC_PRG as well as the synchronous
program section FPLC_PRG.
User interface
CONVERT_DIGITAL_TO_ANALOG
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Digital input value - wDigitalInput reAnalogOutput - Analog output value
Digital start point - wDigitalStartPoint
Analog start point - reAnalogStartPoint
Digital end point - wDigitalEndPoint
Analog end point - reAnalogEndPoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
wDigitalInput WORD Digital input value that is to be converted into an analog value
wDigitalStartPoint WORD Digital value of the 1st value pair to determine the conversion line; x0
reAnalogStartPoint REAL Analog value of the 1st value pair to determine the conversion line; y0
wDigitalEndPoint WORD Digital value of the 2nd value pair to determine the conversion line; x1
reAnalogEndPoint REAL Analog value of the 2nd value pair to determine the conversion line; y1
Output variables
Name Type Description
User interface
CONVERT_VELOCITY
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Selection mode - enMode reOutVal - Output value
Input value - diInVal
SERCOS cycle time - diID2_SERCOS_cycle
Resolution motor encoder - diID116_Resol_mot_encod
Distance per motor - diDistancePerMotorRevolution
revolution
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
The call of this function is permissible in both the asynchronous program section PLC_PRG as well as the synchronous program
section FPLC_PRG.
User interface
fbrInertiaHollowCylinder
Height - reHeight fbrInertiaHollowCylinder - Inertia
Outer diameter - reOuterDiameter
Inner diameter - reInnerDiameter
Density - reDensity
Input variables
Name Type Description
Output variable
Name Type Description
The call of this function is permissible in both the asynchronous program section PLC_PRG as well as the synchronous program
section FPLC_PRG.
User interface
fbrInertiaPlainCylinder
Diameter - reDiameter fbrInertiaPlainCylinder - Inertia
Height - reHeight
Density - reDensity
Output variable
Name Type Description
User interface
fbyChar_To_ASCIICode
Input string strChar fbyChar_To_ASCIICode
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fdi_Convert_InkPerSec_to_0_0001rpm
Resolution motor encoder - diID116_Format fdi_Convert_InkPerSec_to_
0_0001rpm
Speed incr/s - lreVelo_IncPerSec
Input variables
Name Type Description
Output variable
Name Type Description
User interface
fdiConvert_TwoInt_to_Dint
INT value - uiHighVar fdiConvert_TwoInt_to_Dint - DINT value
INT value - uiLowVar
Input variables
Name Type Description
Output variable
Name Type Description
User interface
fdiSwap_AllBytes_of_Dint
- diInVal fdiSwap_AllBytes_of_Dint -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fdiSwap_HLBytes_of_Dint
- diInVal fdiSwap_HLBytes_of_Dint -
Input variable
Name Type Description
User interface
fdiSwap_HLWords_of_Dint
- diInVal fdiSwap_HLWords_of_Dint -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fiConvert_Bcd_to_Int
BCD coded 1 byte number - byB fiConvert_Bcd_to_Int - INT number
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fiConvertTorqueNmToPercent
Torque value [0.1 Nm] - iTorque fiConvertTorqueNmToPercent - Torque value [0.1% Mn]
Motor nominal torque [0.1 - iRatedTorque
Nm]
Output variable
Name Type Description
User interface
fiSwap_Bytes_of_Int
- iInVal fiSwap_Bytes_of_Int -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
frGradToRad
Input value - rInVal frGradToRad - Output value
Input variables
Name Type Description
Output variable
Name Type Description
User interface
frRadToGrad
Input value - rInVal frRadToGrad - Output value
Output variable
Name Type Description
User interface
fstrASCIICode_To_Char
- byASCIICode fstrASCIICode_To_Char -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fstrConvert_BoolToString
- boBool fstrConvert_BoolToString -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
fstrConvert_DintToString
- diDint fstrConvert_DintToString -
Output variable
Name Type Description
User interface
fudCalc_Ramp_Acceleration
Acceleration time - udAt_ms fudCalc_Ramp_Acceleration - Acceleration
Maximum velocity - udVelocity
Resolution motor encoder - diID116
Input variables
Name Type Description
Output variable
Name Type Description
User interface
fudiConvert_Bcd_to_Udint
- udiInVal fudiConvert_Bcd_to_Udint -
Input variable
Name Type Description
User interface
fuiConvert_Bcd_to_Uint
- uiInVal fuiConvert_Bcd_to_Uint -
Input variable
Name Type Description
Output variable
Name Type Description
User interface
udfConvert_Acceleration
Acceleration time - iAt_01s udfConvert_Acceleration - Acceleration
Maximum velocity - udVelocity
Resolution motor encoder - diID116
Input variables
Name Type Description
4.2.1.1.6 08_Feedforward
User interface
FEED_FOR_DEADTIME
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Position setpoint - diSetPosition diTdOffset - Offset output to slave
Hysteresis limit - uiHystLimit
Cycl dead-time - diTdNoOfCycls
compensation
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
diTdNoOfCycls DINT Number of cycles ID2 for the dead-time compensation [0.1 * ID2]
Output variables
Name Type Description
FEED_FOR_DEADTIME
User interface
FEED_FOR_TORQUE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Velocity setpoint - diSetSpeed diTqFFSetpoint - Setpoint feed forward torque
SERCOS cycle time - iID2 diTqFFPercSetpoint - Setpoint feed forward torque
Measuring period - iMeasPeriod
Inertia - reInertia
Nominal motor torque - diMotorRatedTorque
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diTqFFSetpoint DINT Torque control with feedforward; must be output with the block 'SET_PRE_
SETPOINT_TORQUE' to the drive.
[0.1 Nm]
diTqFFPercSetpoint DINT Torque control with feedforward; must be output with the block 'SET_PRE_
SETPOINT_TORQUE' to the drive.
[0.1% Mn]
FEED_FOR_TORQUE
User interface
FEED_FOR_VELOCITY
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Position setpoint - diSetPosition diVelocityFFSetpoint - Setpt feed forward velocity
SERCOS cycle time - iID2
Measuring period - iMeasPeriod
Encoder Revolution - reEncoderRev
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
SET_SETPOINT_POSITION block
diVelocityFFSetpoint DINT Speed control with feedforward; must be output with the block 'SET_PRE_
SETPOINT_SPEED' to the drive.
FEED_FOR_VELOCITY
User interface
FILTER_BLOCKING_NEGATIVE_COUNT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
User interface
FILTER_BLOCKING_POSITIVE_COUNT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diOutVal - Output value
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
User interface
FILTER_HYSTERESIS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diOutVal - Output value
Limit positive - uiLimitPos
Limit negative - uiLimitNeg
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
User interface
FILTER_MEAN_VALUE_DINT_MAX20
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diMeanVal - Mean value
Number of values - iNoOfValues
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
User interface
FILTER_MEAN_VALUE_MAX20
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - iInVal iMeanVal - Mean value
Number of values - iNoOfValues
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
User interface
FILTER_PT1
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diOutVal - Output value
Filter time - diTime
Device structure - stDevice stDevice - Device structure
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
Example:
Jump of the input value 'diInVal' from 0 -> 1000
Ramp increase for acceleration 'diIncreasPos' = 100 [1/s]
This results in: The output value 'diOutVal' ramps from 0 -> 1000 within 10 seconds
User interface
FILTER_RAMP_INCRDECR_TIMECONST
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boRamp - Ramp active
Acceleration step - diIncreasPos boEQ - Equality
Deceleration step - diIncreasNeg diOutVal - Output value
ms counter - diClock
boEnable BOOL Ramp enable signal: With a positive edge, the ramp function of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and the output is
ramped.
In the state 'boEnable' = FALSE the block is no longer ramp enabled and the input
value is copied directly to the output value
diIncreasPos DINT Acceleration steps: Number of steps that the output value increases by per second
[1/s]
diIncreasNeg DINT Deceleration steps: Number of steps that the output value decreases by per
second [1/s]
Output variables
Name Type Description
User interface
FILTER_RAMP_MINMAX_TIME
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boRamp - Ramp active
Min. value ramp - diRampValMin boEQ - Equality
Max. value ramp - diRampValMax diOutVal - Output value
Ramp time - diTRamp
ms counter - diClock
Input variables
Name Type Description
boEnable BOOL Ramp enable signal: With a positive edge, the ramp function of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and the output is
ramped.
In the state 'boEnable' = FALSE the block is no longer ramp enabled and the input
value is copied directly to the output value
User interface
FILTER_SETPOINT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Filter time - lreFilterTime diOutVal - Output value
Input value - diPosition lreVelocity - Actual velocity
Modulo input - diModuloIn lreAccel - Actual acceleration
Modulo output - diModuloOut
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
4.2.1.1.8 10_Buffer
User interface
BUFFER_FIFO_DINT_MAX_50
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boEmpty - Buffer empty
boOverflow - Buffer overflow
diOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boOverflow BOOL Buffer overflow: A new value is to be saved to the buffer, but no free position is
available.
diOutVal DINT Value that was read out the last time the action 'actOutPut' was called
actOutPut Action reads the next value out of the FIFO and writes the value to 'diOutVal'
<BUFFER_FIFO_DINT_MAX_50>.actOutPut(diOutVal=>...);
actReset Action resets the FIFO; all saved values are lost
<BUFFER_FIFO_DINT_MAX_50>.actReset();
User interface
BUFFER_FIFO_INT_MAX50
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - iInVal boEmpty - Buffer empty
boOverflow - Buffer overflow
iOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boOverflow BOOL Buffer overflow: A new value is to be saved to the buffer, but no free position is
available.
iOutVal INT Value that was read out the last time the action 'actOutPut' was called
actOutPut Action reads the next value out of the FIFO and writes the value to 'diOutVal'
<BUFFER_FIFO_INT_MAX50>.actOutPut(diOutVal=>...);
actReset Action resets the FIFO; all saved values are lost
<BUFFER_FIFO_INT_MAX50>.actReset();
User interface
BUFFER_SHIFT_REG_INT_MAX10
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset - boReset iOutVal - Output value
Input value - iInVal
Distance read-write - iShiftDistance
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
iShiftDistance INT Number of cycles until the save value appears at the output
Output variables
Name Type Description
iOutVal INT After the action 'actClock', the variable has the value of the shift register at the
read-out position
actClock The action saves the value of 'iInVal' to the shift register, shifts the register and sets the output
variable 'diOutVal'
<BUFFER_SHIFT_REG_INT_MAX10>.actClock();
4.2.1.1.9 11_Modulo
User Interface
fdiAddModulo
Summand 1 - diSummand1 fdiAddModulo - Output value
Summand 2 - diSummand2
Modulo value - diModulo
Input variables
Name Type Description
Output variable
Name Type Description
User interface
fdiModulo_DiffModulo
Start value - diStartVal fdiModulo_DiffModulo - Difference
Target value - diTargetVal
Modulo value - diModVal
Direction of difference - enDir
Direction negative - boDirNeg
Input variables
Name Type Description
diStartVal DINT Start value of difference; 0 < diStartVal < diModVal [increments]
diTargetVal DINT Target value of difference; 0 < diTargetVal < diModVal [increments]
Output variable
Name Type Description
User interface
fdiModulo_Modulo
Input value - diInVal fdiModulo_Modulo - Modulo value
Modulo end value of the - diModVal
modulo counter
Input variables
Name Type Description
Output variable
Name Type Description
User interface
MODULO_COUNT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boOverFlow - Modulo overflow
Modulo value - diModVal diOutVal - Output value
Preset value - diPreSet
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diPreSet DINT Preset value to which the output is set. The value is applied with the positive edge
of 'boEnable'. [Increments]
Output variables
Name Type Description
boOverFlow BOOL Marking of modulo flow; for overflow or underflow, 'boOverFLow' is set TRUE for
one cycle.
User interface
MODULO_DEMODULO_COUNT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal diOutVal - Output value
Modulo value - diModVal
Preset value - diPreSet
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diPreSet DINT Preset value to which the output is set. The value is applied with the positive edge
of 'boEnable'. [Increments]
Output variables
Name Type Description
User interface
MODULO_MODCOUNT_GEAR
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Initiator Input - boInitiator boOverFlow - Modulo overflow
Input impulse - diInVal diOutVal - Modulo Output value
Modulo value - diModInVal diIniPos - Initiator position
Gear ratio - iGearRatio boErr - Error
iErrID - Error ID
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diInVal DINT Input value, counter input, actual position value motor
diModInVal DINT Modulo value; determines how much the output value 'diOutVal' counts (from 0 to
'diModInVal') [increments]
Output variables
Name Type Description
boOverFlow BOOL Marking of modulo flow; for overflow or underflow, 'boOverFLow' is set TRUE for
one cycle.
diOutVal DINT Output value; the output value 'diOutVal' counts from 0 to 'diModInVal'
[Inkremente]
diIniPos DINT Position at which the low > high flank of the initiator is detected
MODULO_MODCOUNT_GEAR
User interface
MODULO_MODULO1_TO_MODULO2_COUNT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boOverFlow - Overflow
Modulo value - diModVal1 diOutVal - Output value
Preset value - diPreSet1
Modulo value - diModVal2
Preset value - diPreSet2
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diPreSet1 DINT Preset value to which the input value is set for a positive edge at 'boEnable'
[increments]
diPreSet2 DINT Preset value to which the output value is set for a positive edge at 'boEnable'
[increments]
Output variables
Name Type Description
boOverFlow BOOL Marking of modulo flow; for overflow or underflow, 'boOverFLow' is set TRUE for
one cycle.
User interface
INCREMENT_DIFF_STAGE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset - boReset diOutVal - Output value
Input value - diInVal
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
Output variables
Name Type Description
User interface
INCREMENT_DIFF_STAGE_I_TO_DI
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - iInVal diOutVal - Output value
Reset - boReset
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
Output variables
Name Type Description
User interface
INCREMENT_MULTIPLEX_2_INT_TO_1_DINT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset - boReset diOutVal - Output value
Activate input - boInput1Enable
Input value - iInput1
Activate input - boInput2Enable
Input value - iInput2
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
User interface
INCREMENT_MULTIPLEX_2_TO_1_DINT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset - boReset diOutVal - Output value
Activate input - boInput1Enable
Input value - diInput1
Activate input - boInput2Enable
Input value - diInput2
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
Output variables
Name Type Description
User interface
INCREMENT_MULTIPLEX_4_TO_1_DINT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset - boReset diOutVal - Output value
Activate input - boInput1Enable
Input value - diInput1
: - :
Activate input - boInput4Enable
Input value - diInput4
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
Output variables
Name Type Description
User interface
INCREMENT_OFFSET
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Offset value - diOffset boBusy - FB in progress
Increments - uiStep boDone - Ackn. "FB done"
diOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boDone BOOL Response that the function block has been completely executed.
User interface
INCREMENT_SUMMATION
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
INCREMENT_SUMMATION
User interface
TIMING_CONTROL_BLINK
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Flashing signal time ON - uiBlinkOn boOutBlink - Output flashing signal
Flashing signal time OFF - uiBlinkOff
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
User interface
TIMING_CONTROL_CLOCK
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Set real time clock - boSetRealTimeClock boClock50ms - Pulse 50 ms
Start time - dtSetDateTime boClock100ms - Pulse 100 ms
ms counter - diTime boClock250ms - Pulse 250 ms
boClock500ms - Pulse 500 ms
boClock1s - Pulse 1 s
dtDateTime - Time and Date
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSetRealTimeClock BOOL Set real-time clock and date to start value 'dtSetDateTime'
Output variables
Name Type Description
TIMING_CONTROL_CLOCK
4.2.1.1.12 14_I_O_Handling
User interface
I_O_DEBOUNCED_SWITCH
Input signal - boSwitch boDebouncedSwitch - Debounced signal
Debouncing time - tDebounceTime
Input variables
Name Type Description
Output variables
Name Type Description
I_O_DEBOUNCED_SWITCH
User interface
I_O_EDGE_CONTROL
Input signal - boInput boOutput - Output signal
Reset - boReset
Input variables
Name Type Description
Output variables
Name Type Description
User interface
I_O_FLANK_TRIGGER
FB enable - boEnable boOutVal - Output signal
Input signal - boInVal
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
If the enable signal is withdrawn, the output will be deleted.
User interface
I_O_FLANK_TRIGGER_ACKNOWLEDGEMENT
Input bit - boInVal boOutVal - Output signal
Acknowledgement bit - boInValAck boErr - Error
Timeout - tTimeOut iErrID - Error ID
Input variables
Name Type Description
boInVal BOOL With a positive edge, the output 'boOutVal' is set when 'boInValAck' = FALSE
Output variables
Name Type Description
User interface
I_O_LATCH_BUTTON
Pushbutton signal - boButton boLatchButton - Latched output signal
Debouncing time - tDebounceTime
Input variables
Name Type Description
Output variables
Name Type Description
I_O_LATCH_BUTTON
User interface
I_O_PLUS_MINUS_BUTTON
Button for incrementing - boButtonPlus diActValue - Output value
Button for decrementing - boButtonMinus
Preset value - diPreset
Step range - diStep
Upper limit - diMaxValue
Lower limit - diMinValue
Debouncing time - tDebounceTime
Waiting period - tByWaitingPeriod
Step time - tStepTime
diPreset DINT Preset value for 'diActValue' when calling the action (actPreset)
diStep DINT Step width: Maximum distance that is travelled when holding down the Jog button
tByWaitingPeriod TIME Waiting period until permanent counting starts [ms] (Default 1000 ms)
tStepTime TIME Step time for permanent counting [ms] (Default 400 ms)
Output variables
Name Type Description
I_O_PLUS_MINUS_BUTTON
4.2.1.1.13 17_Date
User interface
DATE_COMPAR_BIT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Year - uiYear boActEqTarget - Target date = system date
Month - uiMonth diDayDiff - Differential days
Day - uiDay
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diDayDiff DINT Number of days that are between the target date and the current system date
DATE_COMPAR_BIT
User interface
DATE_CONVERT_DATA_TIME
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Time and Date - dtDate_Time strDate - Date
Date format - enDateFormat strTime - Time
Separator - enSeparator
24h mode - bo24Hour
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
DATE_CONVERT_DATA_TIME
User interface
DATE_PAYDAY
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Password - strPassword_Input boPayDay - Payday, machine stop
boWrong_Password - Wrong password
boCorrect_Password - Correct password
Paid - boPaid boPaid - Paid
Date of the payday - stDate_Payday stDate_Payday - Date of the payday
Field date password - ar_stPassword ar_stPassword - Field date password
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
strPassword_Input STRING Input of the password with which the machine will be enabled again.
boPayDay BOOL 'boPayDay' = TRUE: Payday date reached, stop machine and require password.
boWrong_Password BOOL TRUE for one cycle when an incorrect password has been entered.
boCorrect_Password BOOL TRUE for one cycle when the correct password has been entered.
boPaid BOOL Specifies that payment has already been made. This means that a password has
been entered that is stored with a payday date "0".
DATE_PAYDAY
(Example: 1996 = leap year; 2000 = leap year; 2100 = not a leap year)
The function is called in the asynchronous program level PLC_PRG.
User interface
fboDate_Leap_Year
Year - uiYear fboDate_Leap_Year - Leap year
Output variable
Name Type Description
fboDate_Leap_Year
User interface
fdiDate_Diff_Time
Date - stDate1 fdiDate_Diff_Time - Number of days
Date - stDate2
Input variables
Name Type Description
Output variable
Name Type Description
fdiDate_Diff_Time
User interface
fiDate_Get_Day_of_the_Week
Day - uiDay fiDate_Get_Day_of_the_Week - Weekday
Month - uiMonth
Year - uiYear
uiDay UINT Day of the date for which the weekday is sought
uiMonth UINT Month of the date for which the weekday is sought
uiYear UINT Year of the date for which the weekday is sought
Output variable
Name Type Description
fiDate_Get_Day_of_the_Week
User interface
fiDate_Get_Day_of_the_Year
Day - uiDay fiDate_Get_Day_of_the_Year - Day of year
Month - uiMonth
Year - uiYear
Input variables
Name Type Description
uiDay UINT Day of the date for which the day of the year is sought
uiMonth UINT Month of the date for which the day of the year is sought
uiYear UINT Year of the date for which the day of the year is sought
Output variable
Name Type Description
fiDate_Get_Day_of_the_Year
Standard case:
Special cases:
l 1 January of the corresponding year is a Friday or Saturday:
User interface
fusiDate_Get_Calendar_Week_EU
Day - uiDay fusiDate_Get_Calendar_Week_EU - Calendar week EU
Month - uiMonth
Year - uiYear
Input variables
Name Type Description
uiDay UINT Day of the date for which the calendar week is sought
uiMonth UINT Month of the date for which the calendar week is sought
uiYear UINT Year of the date for which the calendar week is sought
Output variable
Name Type Description
fusiDate_Get_Calendar_Week_EU
User interface
fusiDate_Get_Calendar_Week_USA
Day - uiDay fusiDate_Get_Calendar_Week_USA - Calendar week USA
Month - uiMonth
Year - uiYear
Input variables
Name Type Description
uiDay UINT Day of the date for which the calendar week is sought
uiMonth UINT Month of the date for which the calendar week is sought
uiYear UINT Year of the date for which the calendar week is sought
Output variable
Name Type Description
fusiDate_Get_Calendar_Week_USA
User interface
fusiDate_Get_count_Days_in_Month
Month - uiMonth fusiDate_Get_count_Days_in_Month - Number of days
Year - uiYear
Input variables
Name Type Description
uiMonth UINT Month for which the number of days should be determined.
uiYear UINT Year of the month for which the number of days should be determined.
fusiDate_Get_count_Days_in_Month
User interface
fusiDate_Get_Eastern
Year - uiYear fusiDate_Get_Eastern - Date of Easter Sunday
Input variables
Name Type Description
uiYear UINT Year for which the Easter date should be determined
Output variable
Name Type Description
fusiDate_Get_Eastern
4.2.1.1.14 18_File
4.2.1.1.14.1 Support
FILE_SORT_LIST_ALPHABETIC (FB)
The function block 'FILE_SORT_LIST_ALPHABETIC' sorts a file list. This list is filled by the function block 'FILE_FIND'.
The function block is called in the asynchronous program level PLC_PRG.
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
FILE_SORT_LIST_ALPHABETIC
FB execution - boExec boDone - Ackn. "FB done"
Number of files - iFilesFound
File list - arystFileName arystFileName - File list
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FILE_SORT_LIST_ALPHABETIC
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
FILE_STRING_FILTER
FB execution - boExec strFilterString - Filtered string
Characters to be filtered out - strForbiddenChar iForbiddenCharCount - Number of forbidden
characters
Replacement characters - strReplaceChar boDone - Ackn. "FB done"
Replace/delete - boReplace boErr - Error
String that is checked - strCheckString iErrID - Error ID
strErr - String with filt. characters
Input variables
Name Type Description
boExec BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
strForbiddenChar STRING The string can transfer up to 15 characters that are to be sorted out.
(15) Default \ : * ? " < > |
boReplace BOOL boReplace = TRUE: Characters found are replaced by the replacement character.
boReplace = FALSE: Characters found are deleted from the string
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
strErr STRING Return message of the forbidden characters that were found.
(64)
FILE_STRING_FILTER
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
User interface
FILE_COPY
FB execution - boExec udSize - File size
File name Source - strSourceFile boErr - Error
File name Target - strDestinationFile iErrID - Error ID
Pointer to Buffer - ptbyWorkBuffer enErrName - Name of faulty FB
Buffer size - udWorkBufferSize boDone - Ackn. "FB done"
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FILE_COPY
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
User interface
FILE_DELETE
FB execution - boExec boErr - Error
File name - strFileName iErrID - Error ID
enErrName - Name of faulty FB
boDone - Ackn. "FB done"
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boDone BOOL Response that the function block has been completely executed.
FILE_DELETE
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
User interface
FILE_FIND
FB execution - boExec iFilesFound - Number of files
File name - strSearchFile boDone - Ackn. "FB done"
File with extension - boExtension boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
File structure - arystFileName arystFileName - File structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FILE_FIND
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
User interface
FILE_READ
FB execution - boExec udNoByte - Number of bytes
File name - strFileName udSizeOfFile - File size
Buffer size - udSize boDone - Ackn. "FB done"
Pointer to Buffer - pbyFileBuff boErr - Error
Read mode - enReadMode iErrID - Error ID
enErrName - Name of faulty FB
boExec BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by
the PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FILE_READ
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
User interface
FILE_WRITE
FB execution - boExec boDone - Ackn. "FB done"
File name - strFileName boErr - Error
Pointer to Buffer - pbyFileBuff iErrID - Error ID
Buffer size - udSize enErrName - Name of faulty FB
Write mode - enWriteMode
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FILE_WRITE
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
4.2.1.1.15 19_Stringfunctions
User interface
fiString_Find
Pointer to string 1 - pbyChar1 fiString_Find - Output
Pointer to string 2 - pbyChar2
Input variables
Name Type Description
User interface
fiString_Len
Address - pbyChar fiString_Len - Length
Input variables
Name Type Description
Output variable
Name Type Description
In the AMKAMAC A4 control unit, use this function instead of CONCAT from the Standard.lib library.
User interface
fstrConCat
Input string - strString1 fstrConCat - Output string
Input string - strString2
Input variables
Name Type Description
fstrConCat
4.2.1.1.15.4 fstrString_Append
The function 'fstrString_Append' combines two strings. String 2 is appended to string 1 repeatedly until the character length of
'iMaxLenStr' has been reached.
Examples:
iMaxLenStr String 1 String 2 String 1 new
0 Hello world
3 Hello world Hel
7 Hello world HelloWo
9 Hello world HelloWorl
15 Hello world HelloWorldWorld
The call of this function is permissible in both the asynchronous program section PLC_PRG as well as the synchronous program
section FPLC_PRG.
User interface
fstrString_Append
Address - pbyString1 fstrString_Append -
Address - pbyString2
Max. length - iMaxLenStr
Input variables
Name Type Description
Output variable
Name Type Description
User interface
fstrString_Append1
Address - pbyString fstrString_Append1 -
Address - pbyString1
Address - pbyString2
Max. length - iMaxLenStr
Input variables
Name Type Description
Output variable
Name Type Description
User Interface
fstrString_Compare
Pointer to string 1 - pbyChar1 fstrString_Compare - Output value
Pointer to string 2 - pbyChar2
Output variable
Name Type Description
User Interface
fstrString_Left
Pointer to string - pbyChar fstrString_Left - Output
Number of characters - uiSize
Input variables
Name Type Description
Output variable
Name Type Description
Input variables
Name Type Description
Output variable
Name Type Description
User Interface
fstrString_Right
Pointer to string - pbyChar fstrString_Right - Output
Number of characters - uiSize
Input variablew
Name Type Description
Output variable
Name Type Description
Properties of VIRTUAL_RFGEN
l When the block is enabled by 'boEnable', the output is set to 'diMinVal'.
l If 'diPreset' > 'diMinVal', the output is incremented during the selected ramp time up to 'diPreset'.
l By means of 'boStop' = TRUE, the output is decremented to 'diMinVal' during the selected ramp time.
l It depends on the inputs 'boExecRampTime1' and 'boExecRampTime2', which ramp time will become active.
If none of these inputs is set TRUE, 'diRampTime3' is valid.
l By means of the inputs 'boPlus' and 'boMinus', the output can be incremented and decremented with the active ramp.
l The output is limited by 'diMaxVal' and 'diMinVal'. They both have to be positive values.
The function block is called in the asynchronous program level PLC_PRG.
User interface
VIRTUAL_RFGEN
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Incrementation - boPlus diOutVal - Output value
Decrementation - boMinus
Stop - boStop
ramp time 1 active - boExecRampTime1
ramp time 2 active - boExecRampTime2
Preset value - diPreset
Upper limit - diMaxValue
Lower limit - diMinValue
Ramp time 1 - diRampTime1
Ramp time 2 - diRampTime2
Ramp time 3 - diRampTime3
millisecond clock - diClock
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
VIRTUAL_RFGEN
User interface
VIRTUAL_VGEN
FB execution - boExec boBusy - FB in progress
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
Velocity setpoint - diVelocity enErrName - Name of faulty FB
Velocity override % - siOverride
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
VIRTUAL_VGEN
User interface
VIRTUAL_VGEN_A
FB execution - boExec boBusy - FB in progress
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
Velocity setpoint - diVelocity enErrName - Name of faulty FB
Acceleration - udAccel
Velocity override % - siOverride
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
VIRTUAL_VGEN_A
User interface
VIRTUAL_VGEN_AJ
FB execution - boExec boBusy - FB in progress
Emergency stop - boEmergency_Stop boErr - Error
Emergency stop ramp - diEmergency_StopRamp iErrID - Error ID
Velocity setpoint - diVelocity enErrName - Name of faulty FB
Acceleration - udAccel
Deceleration - udDecel
Acceleration jerk - udAccJerk
Deceleration jerk - udDecJerk
Velocity override % - siOverride
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
VIRTUAL_VGEN_AJ
4.2.1.1.17 21_Data
User interface
DATA_TABLE_SORT
FB execution - boExec boDone - Ackn. "FB enable"
Alphabetical - boAlphabetically arTableOut - Sorted table
Numerical - boNumericSort uiProgress - Progress
Unsorted table - arTableIn
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
DATA_TABLE_SORT
4.2.1.2 06_TechnologyLevel
User interface
EMERGENCY_BREAK_POSITION
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Input value - diInVal boDone - Ackn. "FB done"
Ramp time - diTRamp diOutVal - Output value
SERCOS cycle time - diID2_SERCOS_cycle
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boDone BOOL Response that the function block has been completely executed.
EMERGENCY_BREAK_POSITION
User interface
EMERGENCY_BREAK_VELOCITY
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Input value - diInVal boDone - Ackn. "FB done"
Ramp time - diTRamp diOutVal - Output value
SERCOS cycle time - diID2_SERCOS_cycle
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
Output variables
Name Type Description
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boDone BOOL Response that the function block has been completely executed.
EMERGENCY_BREAK_VELOCITY
l Start of the print mark control with preset of the setpoint position:
On a positive edge of 'boStartPmDet', the value of 'diPmSetupPos' is added to the actual master position. This value
specifies the setpoint position of the next print mark. All following print marks are related to this position.
User interface
PRINT_MARK_CONTROL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Format length - diFormat
Window length - diWndLen
Number of marks until - iNoPmLost
message 'mark lost'
Correction range - diCorrRange
Print mark position setpoint - diPmSetupPos
Max. correction per format - diCorrectionLimit
Modus insetter / register - enPmcMode
controller
actSync
Reset of output boPmLost - boResetPmLost boPmDetected - PM detected
Start mark detection - boStartPmDet boPmLost - PM lost
Enable print mark correction - boCorrEnable boPmWnd - PM window active
Start output operator offset - boSetupOffset diPmDeviation - Deviation betw. setpoint and
actual position
Start with PM setpoint - boSetupPmPos diOpOffsetOut - Output operator offset
position
PM detected - boRefPulse diCorrOut - Output value
Impulse of the controlled - diCount iActPmLost - Number of lost marks
aggregate
PM offset - diPmOffset
Operator offset - diOpOffset
Impulse of the speed master - diCorrCount -
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used as an offset to
shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
diOpOffsetOut DINT Output value contains the actually output operator offset
PRINT_MARK_CONTROL PRINT_MARK_CONTROL.actSync
User interface
PRINT_MARK_CORRECT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Enable output - boCorrEnable diOutVal - Output value
Correction value - diCorrVal
Master pulses - diCount
Correction range - diCorrRange
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
PRINT_MARK_CORRECT
Associated with this function block, a visualisation is prepared in CoDeSys.
Siehe 'Visualization of AFL blocks' auf Seite 806.
User interface
PRINT_MARK_CORROUT_CONTROL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Preset value - diPreSet
Start position output range - diCorrRangeStart
End position output range - diCorrRangeEnd
Modulo value - diModVal
actSync
Master pulses - diCount boCorrEnable - Master position within
output range
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diPreSet DINT Preset value to which the output is set. The value is applied with the positive edge
of 'boEnable'. [Increments]
PRINT_MARK_CORROUT_CONTROL PRINT_MARK_CORROUT_CONTROL.actSync
If the function block is used as a print mark control, it must be implemented in the synchronous program level.
User interface
PRINT_MARK_DETECT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Start - boStartPmDet boPmDetected - Print mark detected
Setup print mark position - boSetupPmPos boPmLost - Print mark lost
Reset output - boResetPmLost boPmWnd - Print mark window active
Reference pulse - boRefPulse diPmDeviation - Deviation setpoint - actual
Master pulses - diCount diCorrVal - Correction value
Print mark offset - diPmOffset iPmLostCnt - Number of lost printmarks
Operator offset - diOpOffset
Setpoint format - diFormat
Window length - diWndLen
Number of maximal lost print - iNoPmLost
marks
Relative setpoint position - diPmSetupPos
Maximum correction value - diCorrectionLimit
Control mode - enPmcMode
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStartPmDet BOOL Start of the print mark control and specification of the print mark setpoint position
by parameter 'diPmSetupPos' if 'boSetupPmPos' = TRUE
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
Output variables
Name Type Description
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
PRINT_MARK_DETECT
o The first detected print mark sets the setpoint position (Siehe 'PRINT_MARK_CONTROL (FB)' auf Seite 480.)
Schematic diagram
User interface
PRINT_MARK_INSETTER_CONT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset output boPmLost - boResetPmLost boParameterSetupDone - Parameterisation finished
Start output operator offset - boSetupOffset boPmDetected - Print mark detected
Start with print mark setpoint - boSetupPmPos boPmLost - Print mark lost
position
Master counts negative - boMasterNegDir boPmWnd - Print mark window active
Motor direction negative - boMotorNegDir diPmDeviation - Deviation between setpoint
and actual position
Enable correction output - boCorrOutControlOn diOpOffsetOut - Output operator offset
Operator offset - diOpOffset iActPmLost - Number of lost print marks
Format length - diFormatLength boErr - Error
Window length - diWindowLength iErrID - Error ID
Number of marks until - iNoPmLost
message 'mark lost'
Correction range - diCorrectionRange
Print mark position setpoint - diPmSetupPos
Max. correction per format - diCorrectionLimit
Start correction range 1 - diCorrRng1Start
End correction range 1 - diCorrRng1End
Offset correction control 1 - diCorrOutControl1PreSet
Start correction range 2 - diCorrRng2Start
End correction range 2 - diCorrRng2End
Offset correction control 2 - diCorrOutControl2PreSet
Position setpoint - diSetPosition diSetPosition - Position setpoint
actSync
Start print mark detection - boStartPmDet
Print mark detected - boPmRefPulse
Master pulses - diCount
Print mark offset - diPmOffset
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used as an offset to
shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, related to the
diCorrOutControl2PreSet master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when starting the
correction control, >format/2< must be set on a 0 -> 1 edge of
'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark setpoint position
by parameter 'diPmSetupPos' if 'boSetupPmPos' = TRUE
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
diOpOffsetOut DINT Output value contains the actually output operator offset
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
PRINT_MARK_INSETTER_CONT PRINT_MARK_INSETTER_CONT.actSync
o Sinus curve
o Sinus2 curve
o The first detected print mark sets the setpoint position (Siehe 'PRINT_MARK_CONTROL (FB)' auf Seite 480.)
Example values
diFormatLength 10000 Incr
diWindowLength 2500 Incr
diCorrectionRange 70 %
diCorrRng1Start 1000 Incr
diCorrRng1End 9000 Incr
diCorrOutControl1PreSet 0 Incr (no shifting)
actSync
Start print mark detection - boStartPmDet
Print mark detected - boPmRefPulse
Master pulses - diCount
Print mark offset - diPmOffset
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used as an offset to
shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, related to the
diCorrOutControl2PreSet master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when starting the
correction control, >format/2< must be set on a 0 -> 1 edge of
'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark setpoint position
by parameter 'diPmSetupPos' if 'boSetupPmPos' = TRUE
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
diOpOffsetOut DINT Output value contains the actually output operator offset
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
PRINT_MARK_INSETTER_INTERVAL PRINT_MARK_INSETTER_INTERVAL.actSync
User interface
PRINT_MARK_IPO
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Enable output - boCorrEnable boDone - Ackn. "FB done"
Start output - boStartCorrOut diOutVal - Output value
Path length - diCorrVal
(e.g. correction value)
Number of output cycles - diNoCycl
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
complete output
PRINT_MARK_IPO
Scheme
l The function block 'RATIO_INC' streteches or compresses the actual positioning according to the PM position
l Thus, nothing changes for the function block POS.
l The positioning is completed in the specified time
l If the PM is missing, the normal format length is used
User interface
PRINT_MARK_POSITION_TO_THE_MARK
FB enable - boEnable boDone - Ackn. "FB done"
Emergency stop - boEmergency_Stop boBusy - FB in progress
Emergency stop ramp - diEmergency_StopRamp boErr - Error
Execution started - boStart iErrID - Error ID
Start homing cycle - boHome enErrName - Name of faulty FB
Distance PM - diFormat boEnabAck - Ackn. "FB enable"
Offset PM - diOffsetPM boRefPulse - Homing pulse
Number of lost PMs - usiNoLostPM diDeviationPM - PM offset
Velocity homing drive - diSpeedHome usiNoPmLost - Number of lost PMs
PM window - diWindowPM
Max. correction - diMaxCorrection
Acceleration - udAccel
Deceleration - udDecel
Time for positioning - udTimeForPos
Actual position value - diActPosition
Cur. latch value - diLatchValue
Device structure - stDevice stDevice - Device structure
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boEmergency_Stop BOOL EMERGENCY STOP: The setpoint of the velocity is decreased to zero along the
emergency-stop ramp. Once initiated, an emergency stop cannot be aborted.
diEmergency_StopRamp DINT EMERGENCY-STOP ramp: Ramp time in which the drive is slowed down from the
current velocity to zero [ms].
boStart BOOL With a positive edge, the execution of the block starts.
usiNoLostPM USINT Once the preset number of marks is lost, an error message is generated.
Default 0 = Error message is never generated
Unit: Increments
Default value: 10
diWindowPM DINT Window in which the marks must be located for detection (+/- target position)
Unit: Increments
Default value: 20480
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
boRefPulse BOOL For one cycle boRefPuls = TRUE when the latch value is changed.
diDeviationPM DINT Deviation between actual and target position of the last found PM.
Unit: Increments
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
PRINT_MARK_POSITION_TO_THE_MARK
o The first detected print mark sets the setpoint position (Siehe 'PRINT_MARK_CONTROL (FB)' auf Seite 480.)
Schematic diagram
actSync
Start print mark detection - boStartPmDet
Print mark detected - boPmRefPulse
Master pulses - diCount
Print mark offset - diPmOffset
Register controller pulses - diRcCount
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used as an offset to
shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, related to the
diCorrOutControl2PreSet master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when starting the
correction control, >format/2< must be set on a 0 -> 1 edge of
'boCorrOutControlOn'
boStartPmDet BOOL Start of the print mark control and specification of the print mark setpoint position
by parameter 'diPmSetupPos' if 'boSetupPmPos' = TRUE
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
diOpOffsetOut DINT Output value contains the actually output operator offset
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
PRINT_MARK_REGISTER_CONTROL_CONTINUOUS PRINT_MARK_REGISTER_CONTROL_CONTINUOUS.actSync
l Master format and circumference of the treating tool do not have to be equal
l While the treating tool is in mesh with the web (e.g. cut), it moves synchronously.
After the treatment, an adequate compensation movement is done.
The movement is discontinuous
l A trend deviation between actual and setpoint print mark position will be controlled
l The function block implements two kinds of collecting the setpoint position of the print mark:
o The setpoint position can be set to an absolute position within the print format.
o The first detected print mark sets the setpoint position (Siehe 'PRINT_MARK_CONTROL (FB)' auf Seite 480.)
Example values
diFormatLength 10000 Inkr
diWindowLength 2500 Inkr
diCorrectionRange 70 %
diCorrRng1Start 1000 Inkr
diCorrRng1End 9000 Inkr
diCorrOutControl1PreSet 0 Inkr (keine Verschiebung)
uiRegContSyncRng 18 °
actSync
Start print mark detection - boStartPmDet
Print mark detected - boPmRefPulse
Master pulses - diCount
Print mark offset - diPmOffset
Register controller pulses - diRcCount
Position setpoint - diSetPosition diSetPosition - Position setpoint
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSetupOffset BOOL Output start of the specified value of 'diOpOffset'. This value is used as an offset to
shift the printing mark set position
boSetupPmPos BOOL Mode how to determine the nominal position of the print mark on a positive edge of
'boStartPmDet'
'boPmSetupPos' = FALSE:
The position of the next print mark is set as nominal position. All following print
marks are adjusted to this position.
'boPmSetupPos' = TRUE:
The parameter 'diPmSetupPos' specifies the print mark relatively to the actual
master position. The following print marks are adjusted to this position
iNoPmLost INT Number of print marks to be missed in succession, before the output 'boPmLost' is
set.
diPmSetupPos DINT The parameter specifies the nominal position of the print mark relatively to the
actual master position on a positive edge of 'boStartPmDet'.
The detected print marks are controlled to this position [increments]
diCorrOutControl1PreSet DINT Actual position value (zero offset) at start of the correction control, related to the
diCorrOutControl2PreSet master increments / format [increments]
Example:
If the controlled drive is positioned in the middle of the format when starting the
correction control, >format/2< must be set on a 0 -> 1 edge of
'boCorrOutControlOn'
uiRegContSyncRng UINT Range where the register controller must run synchronously with the web
[degree]
boStartPmDet BOOL Start of the print mark control and specification of the print mark setpoint position
by parameter 'diPmSetupPos' if 'boSetupPmPos' = TRUE
diPmDeviation DINT Deviation between setpoint and actual position of the actual print mark
diOpOffsetOut DINT Output value contains the actually output operator offset
iErrID = 0 No error
iErrID ≠ 0 boErr = TRUE Error
iErrID ≠ 0 boErr = FALSE Warning
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
PRINT_MARK_REGISTER_CONTROL_DISCONT PRINT_MARK_REGISTER_CONTROL_DISCONT.actSync
==>
User interface
PRINT_MARK_TABLE_INVERTER
FB enable - boEnable boEnabAck - Ackn. "FB enable"
FB execution - boExec boDone - Ackn. "FB done"
Y-table - stYTab stYTab - Y-table
XY-table - stXYInversTab stXYInversTab - XY-table
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Execute transformation
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
Output finished
PRINT_MARK_TABLE_INVERTER
l If the calculation of the table is done with the function block 'TAB_CALC' (AmkBase.lib) or a block from the AmkTabC.lib
library, the table structure can be used without changes at the input 'stYTab'.
l If the table is created with the editor, the following adaptation is necessary:
Declaration:
VAR
pYTab: POINTER TO ST_PROF_TAB;
END_VAR
Program call:
pYTab:=ADR(g_TestCamY);
fbPrintMarkTableInvert(
boEnable:= ,
boExec:= ,
stYTab:= pYTab^,
stXYInversTab:= g_TestXY,
boEnabAck=> ,
boDone=> );
User interface
WINDER_ANALOG_TO_PULSE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Reset output value - boResetOutput diPulsOutVal - Puls output
Analog input - iAnalogInVal boErr - Error
Number of pulses at 10 V - diPulsesAt10V iErrID - Error ID
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diPulsOutVal DINT Pulse output, the pulses can be copied to the realization of an analog velocity input
to module 'WINDER_WINDER' input 'diActWebPos'.
WINDER_ANALOG_TO_PULSE
User interface
WINDER_DANCER_BIN_OUT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Dancer position inverted - boDncInvert boFullPos - Dancer in position "full"
Actual dancer position - iActPos boMiddlePos - Dancer in position "middle"
Dancer position "full" - iDncFullPos boEmptyPos - Dancer in position "empty"
Dancer position " middle" - iDncMiddlePos
Dancer position "empty" - iDncEmptyPos boErr - Error
Window dancer in position - iDncMidRange iErrID - Error ID
"middle"
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boDncInvert BOOL FALSE: No inversion dancer, position "full" of dancer at least voltage
TRUE: Inversion dancer active, position "full" of dancer at largest voltage
iDncMidRange INT Range around 'iDNC Middelpos' for dancers in middle position [mV]
Default: 1000 mV
Output variables
Name Type Description
WINDER_DANCER_BIN_OUT
User interface
WINDER_CHARACTERISTICS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Actual Diameter - iActDm iForce - Winding force
Value table - arstFunction boErr - Error
iErrID - Error ID
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
WINDER_CHARACTERISTICS
fbWinderChar.arstFunction[1].iDiameter:= iDmMin+iDmDiff/16;
fbWinderChar.arstFunction[1].iTorque:= 50;
fbWinderChar.arstFunction[2].iDiameter:= iDmMin+iDmDiff/8;
fbWinderChar.arstFunction[2].iTorque:= 24;
fbWinderChar.arstFunction[3].iDiameter:= iDmMin+iDmDiff/4;
fbWinderChar.arstFunction[3].iTorque:= 12;
fbWinderChar.arstFunction[4].iDiameter:= iDmMin+iDmDiff/2;
fbWinderChar.arstFunction[4].iTorque:= 8;
fbWinderChar.arstFunction[5].iDiameter:= iDmMin+iDmDiff;
fbWinderChar.arstFunction[5].iTorque:= 6;
User interface
WINDER_CALC_DM
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Activation diameter - boEnabDmCalc boParameterSetup - Accept parameters
calculation
Actual values updated - boActValUpdate boDmOk - Diameter known
Actual position web - diActWebPos boDmCalc - Calculation diameter
Actual position reel - diActReelPos boDmLimit - Limitation diameter
Actual value dancer position - iActDncPos iActDm - Actual value diameter
Reel revolution interval - iMesCycDmOk boErr - Error
known
Reel revolution interval not - iMesCycNoDm iErrID - Error ID
known
Increments per revolution - diWebEncIncr
Length per revolution - diWebEncLen
Increments per Reel - diReelIncPerRev
revolution
Dancer constant - diDncComp
Maximum difference - iDmDiffOk
Diameter preset value - iDmPreSet
Direction of the dancer - iDmCalcDncDir
Maximal permissible - iDmMax
diameter
Minimal permissible - iDmMin
diameter
Direction of the influence - iSpeedSetvalDir
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
iDmDiffOk INT Maximum difference between two successively calculated diameters, so that the
review "diameter valid" is accepted [mm]
iDmCalcDncDir INT Direction of the dancer's influence on the diameter calculation [1, -1]
iSpeedSetvalDir INT Direction of the influence of web speed on the diameter calculation [1, -1]
Output variables
Name Type Description
boDmCalc BOOL Diameter was calculated, and the values were out of 'iDmMin' and 'iDmMax', the
value was limited accordingly
WINDER_CALC_DM
User interface
WINDER_CALC_WEB_SPEED
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Web pulses - diInVal boWebRuns - Web speed <>0
ID2 - diID2 iWebSpeed - Web speed
measurement period - iPeriod iWebAcc - Acceleration
Counter input web encoder - diWebEncIncr boErr - Error
Lenght web encoder - diWebEncLen iErrID - Error ID
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diWebEncIncr DINT Number of counted increments at input 'diInVal' with move on the track
'diWebEncLen' [increments]
diWebEncLen DINT Distance covered web track when changing the input 'diInVal' to 'diWebEncIncr'
increments [mm]
Output variables
Name Type Description
WINDER_CALC_WEB_SPEED
User interface
WINDER_CD_REEL_TO_MOTOR_SPEED
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Web speed - diWebSpeed diMotorSpeed - Reel speed scaled to motor
speed
PID-controller output speed - diPidSpeed boErr - Error
Reel diameter - iDmReel iErrID - Error ID
Maximum reel diameter - iDmReelMax
Gear input - iGearInput
Gear output - iGearOutput
Direction speed setpoint - iSpeedSetValDir
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diMotorSpeed DINT Scaled reel speed, setpoint speed motor [0.0001 r/min]
WINDER_CD_REEL_TO_MOTOR_SPEED
User interface
WINDER_CALC_FRICTION
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Ground friction torque - diTorque0 boErr - Error
Speed at 'diTorqueMax' - diSpeedMax iErrID - Error ID
Friction torque at - diTorqueMax
'diSpeedMax'
actSync
actual speed motor - diActSpeed diFrictionTorqueAbs - Friction torque
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Actions
Name Description
WINDER_CALC_FRICTION WINDER_CALC_FRICTION.actSync
User interface
WINDER_CALC_INERTIA
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Diameter - iDm diInertia - inertia torque
Web width - iWidth boErr - Error
Material density - iDensity iErrID - Error ID
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
WINDER_CALC_INERTIA
User interface
WINDER_CALC_TORQUE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Valid diameter - boDmOk iSetTorque - Torque setpoint
Absolute friction component - diFrictionAbs boErr - Error
Absolute web tension - diWebTension iErrID - Error ID
Inertia torque of the reel - diReelInertia
Reel diameter - iDmReel
Web acceleration - diWebAcc
Gear input - iGearInput
Gear output - iGearOutput
Motor nominal torque - iRatedTorque
Torque setpoint if diameter - diSetupReelTorqueAbs
known
Direction of the web tension - iWebTensionDir
to the motor rotational
direction
Direction of friction to the - iFrictionDir
motor rotational direction
Direction of the web speed - iSpeedDir
to the motor rotational
direction
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diSetupReelTorqueAbs DINT Torque setpoint of the reel when the diameter 'iDmReel' is unknown [0.1% Mn]
iWebTensionDir INT Direction of the web tension to the positive motor rotation direction [1,-1]
iFrictionDir INT Direction of friction in relation to the positive motor rotation direction [1,-1]
iSpeedDir INT Direction of the web speed in relation to the positive motor rotation direction [1,-1]
Output variables
Name Type Description
WINDER_CALC_TORQUE
User interface
WINDER_CT_REEL_TO_MOTOR_SPEED
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Web speed - diWebSpeed diMotorSpeedTotal - Motor speed with offset
Reel diameter - iDmReel diMotorSpeedOffs - Offset motor speed
Gear input - iGearInput diMotorSpeed - Reel speed without offset
Gear output - iGearOutput boErr - Error
Direction speed setpoint - iSpeedSetvalDir iErrID - Error ID
Offset motor speed absolute - iMotorSpeedOffsetAbs
Offset motor speed - iMotorSpeedOffsetPrcnt
percentage
Offset speed direction - iSpeedOffsetDir
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
WINDER_CT_REEL_TO_MOTOR_SPEED
User interface
WINDER_PID_CTRL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
permit negative speed - boNegSpeedPermit boParamSetupDone - Parameters accept
Dancers gain by - boRaiseGain boErr - Error
characteristics curve active
I component of the PID - boActivateKi iErrID - Error ID
controller is active
Delete integral sum - boClearI
Dancer position setpoint - iSetVal
milliseconds counter - diClock
Configuration structure - stConfig
Device structure - stDevice stDevice - Device structure
actSync
Actual value dancer position - iActVal diOutSpeed - actual speed value
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Actions
Name Description
WINDER_PID_CTRL WINDER_PID_CTRL.actSync
iDmPidSet INT 600 Reel diameter, in which the parameters 'iKp', 'iKi', 'iKd' and 'iKv' of the
PID controller are set [mm]
iKvGainShapeP2 INT 50 Gain at (dancers setpoint - actual value dancer) > iGainShapeP2
User interface
WINDER_SCALE_FIND_INERTIA_SPEED
Reel speed - diReelSpeed diMotorSpeed - Speed motor
Gear input - iGearInput
Gear output - iGearOutput
Web tension - iWebTensionDir
Input variables
Name Type Description
iWebTensionDir INT Direction of the web tension to the positive motor rotation direction [1,-1]
Output variables
Name Type Description
WINDER_SCALE_FIND_INERTIA_SPEED
User interface
WINDER_TIGHTWND_REACHED
actual reel position - diActReelPos boReached - Web is tight
Start position loop formation - diFiReelStartPos
Window "web tight" - diFiTightWndIncr
Direction of the web tension - iWebTensionDir
diFiReelStartPos DINT Actual position value of the reel on which the web loop was formed [increments]
diFiTightWndIncr DINT Window in which the web is monitored for tightness [increments]
iWebTensionDir INT Direction of the web tension to the positive motor rotation direction [1,-1]
Output variables
Name Type Description
WINDER_TIGHTWND_REACHED
User interface
WINDER_DANCER_CONTROL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Activation of the diameter - boDmCalc boDmOk - Diameter ok, status "known"
calculation
Dancer in middle position - boDncMidPos boDmLimit - Diameter was limited
Dancer mode "Follow actual - boDncTraceMode iActDm - Actual value diameter
value"
Activate gain ramp - boRaiseGain boErr - Error
Activate output web speed - boOutputSpeed iErrID - Error ID
Set diameter - boDmPreset
Set diameter, status "known" - boDmOkPreset
Set diameter, status - boDmNokPreset
"unknown"
Set diameter status of - boDmReset
"known" → "Unknown"
Set output 'boDmOk' - boSetDmOk
Dancer controller delete i - boClearI
component
Diameter preset value - iDmPreset
PGT clock - uiID2
Device structure - stDevice stDevice - Device structure
actSync
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boOutputSpeed BOOL Output web speed as the speed setpoint for motor
boDmPreset BOOL Set diameter value of the input 'iDmPreset'. The input bit is automatically reset
after set.
boDmOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit 'boDmPreset' is
automatically reset after set.
Diameter status "known": The diameter value is interpreted as valid diameter, that
is, acceleration and friction torques are calculated.
boDmNokPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit 'boDmPreset' is
automatically reset after set.
Diameter status "unknown": The diameter value is interpreted as invalid diameter,
that is, acceleration and friction torques are calculated.
boDmLimit BOOL Diameter was calculated, and the result was outside of
'ST_WINDER_DANCER_CONTROL_CONFIG.iDmMin' and
'ST_WINDER_DANCER_CONTROL_CONFIG.iDmMax', the value was limited
accordingly
Value Meaning
17 One of the following parameters has a value <=0:
ST_WINDER_DANCER_CONTROL_
CONFIG.stDancerConfig.iDancerFullPosition,
ST_WINDER_DANCER_CONTROL_
CONFIG.stDancerConfig.iDancerMidPosition,
ST_WINDER_DANCER_CONTROL_
CONFIG.stDancerConfig.iDancerEmptyPosition,
ST_WINDER_DANCER_CONTROL_
CONFIG.stDancerConfig.diTUpRamp,
ST_WINDER_DANCER_CONTROL_
CONFIG.stDancerconfig.diTDownRamp
Output variables Input variables of the synchronous part of the program (FPLC_PRG)
Name Type Description
WINDER_DANCER_CONTROL WINDER_DANCER_CONTROL.actSync
ST_WINDER_DANCER_CONTROL_CONFIG (ST)
Configuration structure
Name Type Ex. value Description
boWindCWise BOOL FALSE FALSE: reel is wound up when the motor rotation direction
counterclockwise.
TRUE: reel is wound up when the motor rotation direction clockwise.
boUnwinder BOOL FALSE FALSE: winder runs as a rewinder. With positive web speed is
rewinded.
TRUE: winder runs as unwinder. With a positive web velocity is
unwinded.
boMotCcWise BOOL FALSE Mounting position of the motor opposite to the reel
diMotIncPerRev DINT 20000 Increments per motor revolution (ID 116 'Resolution motor encoder')
Example:
Parameter measured Unit Meaning
value
U1 3625 [mV] Tension U1 on a dancer position X1
U2 7453 [mV] Tension U2 on a dancer position X2
ΔX 800 [mm] Difference between the positions X2 - X1
In the measurement, make sure that the dancer is not moved to the end positions, because there usually is a non-linear
relationship between the recorded web and tension difference.
Speed parameter
Name Type Ex. value Description
diWebEncIncr DINT 20000 Number of counted increments at input 'diInVal' with move on the
track 'diWebEncLen' [increments]
diWebEncLen DINT 1000 Distance covered web track when changing the input 'diInVal' to
'diWebEncIncr' increments [mm]
iWebSpdPeriod INT 5 Number of calls cycles ID2 'SERCOS cycle time' for measurement of
the web speed
Tuning parameter
Name Type Ex. value Description
ST_WINDER_DANCER_CONFIG (ST)
Configuration structure dancer
Name Type Ex. value Description
iDancerFullPosition INT 1000 Dancers tension when the dancer is filled with material [mV]
iDancerMidPosition INT 5000 Dancers tension in the middle position of the dancer (operating point)
[mV]
iDancerEmptyPosition INT 9000 Dancers tension when the dancer is empty [mV]
diTUpRamp DINT 1000 Ramp time for the movement of the dancer in the operating point
position [ms]
diTDownRamp DINT 3000 Ramp time for the movement of the dancer in deposition position
(dancers filled) [ms]
ST_WINDER_PID_CONFIG (ST)
Configuration structure PID-controller
Name Type Ex. value Description
iDmPidSet INT 600 Reel diameter, in which the parameters 'iKp', 'iKi', 'iKd' and 'iKv' of the
PID controller are set [mm]
iKvGainShapeP2 INT 50 Gain at (dancers setpoint - actual value dancer) > iGainShapeP2
User interface
WINDER_TORQUE_CONTROL
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Activation of the diameter - boDmCalc boDmOk - Diameter ok, status "known"
calculation
Determination the inertia - boFindInertia boFindInertiaDone - Inertia moment determined
moment of the reel
Wind on - boWind boWindRuns - Wind runs
Synchronize on - boSync boSyncRuns - Synchronize runs
Set diameter - boDmPreset boDmLimit - Diameter was limited
Set diameter, status - boDmOkPreset iActDm - Actual value diameter
"known"
Set diameter, status - boDmNOkPreset diActValWebSpeed - Actual value web speed
"unknown"
Set diameter status of - boDmReset boErr - Error
"known" → "Unknown"
Set output 'boDmOk' - boSetDmOk iErrID - Error ID
Setpoint web tension - diWebTension
Diameter preset value - iDmPreset
PGT clock - uiID2
Device structure - stDevice stDevice - Device structure
actSync
Actual speed motor - diActMotorSpeed diSetValMotorSpeed - Speed setpoint motor
Actual reel position - diActReelPos iSetValTorqueAbs - Limit torque setpoint
Actual web position - diActWebPos diActMotorSpeedAbs - Actual motor speed absolute
- diActReelPosAbs - Actual reel position absolute
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boFindInertia BOOL Determination the inertia moment of the reel and tightening web on
boDmPreset BOOL Set diameter value of the input 'iDmPreset'. The input bit is automatically reset
after set.
boDmOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit 'boDmPreset' is
automatically reset after set.
Diameter status "known": The diameter value is interpreted as valid diameter, that
is, acceleration and friction torques are calculated.
boDmNOkPreset BOOL Diameter value of input variable 'iDmPreset' set. The input bit 'boDmPreset' is
automatically reset after set.
Diameter status "unknown": The diameter value is interpreted as invalid diameter,
that is, acceleration and friction torques are calculated.
Value Meaning
12 Block WINDER_FRICTION_CALC:
One of the input variables 'iRatedTorque' or 'diSpeedMax'
has a value <=0
13 Block WINDER_WINDER_CT:
The maximum permissible torque with the function
"Determination the inertia moment of the reel and
tightening web" on parameter 'ST_WINDER_TORQUE_
CONTROL_CONFIG.iFiMaxTorque' has been achieved.
14 Block WINDER_TORQUE_CONTROL:
The maximum permissible time with the function
"Determination the inertia moment of the reel and
tightening web" on parameter 'ST_WINDER_TORQUE_
CONTROL_CONFIG.tFiTightTOut' has been exceeded.
The reel could not tight the web. Probably the web is
ripped.
15 One of the following parameters has a value <=0:
ST_WINDER_TORQUE_CONTROL_
CONFIG.udFiSlackTorque,
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.udFiSlackVelocity,
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.udFiTramp,
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.iFiMaxTorque,
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.iFiTightSpeed,
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.iFiSpeedThresholdPerc
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.iFiSpeed0Perc
ST_WINDER_TORQUE_CONTROL_
CONFIG.stConfig.iFiTightWnd
18 Block WINDER_CHARACTERISTICS:
One of the diameter values is smaller than the previous
value
WINDER_TORQUE_CONTROL WINDER_TORQUE_CONTROL.actSync
ST_WINDER_TORQUE_CONTROL_CONFIG (ST)
Configuration structure
Name Type Ex. value Description
boWndCWise BOOL FALSE FALSE: reel is wound up when the motor rotation direction
counterclockwise.
TRUE: reel is wound up when the motor rotation direction clockwise.
boUnwinder BOOL FALSE FALSE: winder runs as a rewinder. With positive web speed is
rewinded.
TRUE: winder runs as unwinder. With a positive web velocity is
unwinded.
diMotIncPerRev DINT Increments per motor revolution (ID 116 'Resolution motor encoder')
Reel synchronization
Name Type Ex. value Description
uiFrcSetSpeedLimitPos UINT 50 Positive hysteresis limit for the calculation of the friction torque [0.1
r/min]
uiFrcSetSpeedLimitNeg UINT 50 Negative hysteresis limit for the calculation of the friction torque [0.1
r/min]
diWebEncLen DINT 1000 Distance covered web track when changing the input 'diInVal' to
'diWebEncIncr' increments [mm]
diWebEncIncr DINT Number of counted increments at input 'diInVal' with move on the
track 'diWebEncLen' [increments]
iWebSpdPeriod INT 5 Number of calls cycles ID2 'SERCOS cycle time' for measurement of
the web speed
iRatedTorque INT Motor nominal torque [0.1 Nm] ID32771 'Nominal torque'
udFiSlackTorque UDINT 1000 Setpoint motor torque during the determination of the reels inertia
torque [0.1% Mn]
udFiSlackVelocity UDINT 50 Speed setpoint to push back the reel to determine the reels inertia
torque [0.1 U / min]
udFiTramp UDINT 1000 Acceleration ramp for the return rotation of the reel [ms]
tFiTimeStep TIME 500 Time interval to increase torque while determining the reels inertia
torque [ms]
iFiTorqueStep INT 50 Torque step increase during the determination of the reels inertia
torque [0.1% Mn]
iFiMaxTorque INT 1000 Maximum torque for the determination of the reels inertia torque
[0.1% Mn]
iFiTightSpeed INT 50 Speed setpoint for tightening the web [0.1 r/min]
iFiTightWnd INT 20 Position window for tightening the web when reel stands and reel
position in the window, the web is considered tightened [1/r]
Tuning parameter
Name Type Ex. value Description
User interface
prgLoad_Save_Recipe_To_File
All recipes USB -> CST - boFromUSB boDone - Ackn. "FB done"
All recipes CST -> USB - boToUSB boErr - Error
Start reading recipe - boRead iStateConnectCst - CST connection status
Start saving recipe - boWrite iStateConnectUsb - USB connection status
Start deleting recipe - boDelete iErrID - Error ID
Update file list - boActFileLists enErrName - Name of faulty FB
One recipe CST -> USB - boToUSBsingle boQuery - Query
One recipe USB -> CST - boFromUSBsingle iCST_Files_Found - Found CST files
Delete files on CST - boDelAllCST iUSB_Files_Found - Found USB files
Delete files on USB - boDelAllUSB diWholeSizeUSB - Total USB size
File name - strFileName diWholeSizeCST - Total CST size
File path - strFilePath diFreeSpaceUSB - Space for additional files
Date address - p_Data diFreeSpaceCST - Space for additional files
File size - udSizeData diFreeFilesUSB - Space for additional files
Overwrite all files - boAllYes diFreeFilesCST - Space for additional files
Do not overwrite any file - boAllNo strDoubleFile - File exists twice
Overwrite a file - boYes uiProgress - Progress %
Do not overwrite a file - boNo arFileFoundUsb - Field with file names
Name for CST Handle - strCstHandle arFileFoundCst - Field with file names
Name for USB Handle - strUsbHandle
Input variables
Name Type Description
boRead BOOL Read out selected file ('strFileName') and recipe (only CST)
strFilePath STRING Path (USB and CST), to which the recipe files will be stored (‘/’ as separator)
boAllYes BOOL If query is made via 'boQuery': Overwrite all double files
boAllNo BOOL If query is made via 'boQuery': Do not overwrite all double files
boYes BOOL If query is made via 'boQuery': Overwrite the double files ('strDoubleFile')
boNo BOOL If query is made via 'boQuery': Do not overwrite the double files ('strDoubleFile')
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boQuery BOOL boQUERY = TRUE: Query, whether the file ('strDoubleFile') should be overwritten.
Must be answered with 'boYes', 'boNo', 'boAllYes' or 'boAllNo'.
diFreeFilesUSB DINT Number of files, that still fit on USB (with 1 kByte clusters)
diFreeFilesCST DINT Number of files, that still fit on CST (with 1 kByte clusters)
strDoubleFile STRING Name of the recipe file that already exists and should be transferred
prgLoad_Save_Recipe_To_File
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
4.2.1.2.5 05_Alarm
4.2.1.2.5.2 FILE_MANAGER
fbyReadFile (F)
The function 'fbyReadFile' reads the content of a file. It then returns the status.
Different from the two function blocks 'READ_FILE' and 'READ_FILE_1' of the AmkFile.lib, here the SysLibFile.lib is used.
The function is called in the asynchronous program level PLC_PRG.
User interface
fbyReadFile
File name - strFileName fbyReadFile - Status
Pointer to Buffer - pbyDest
Buffer size - dwSize
Input variables
Name Type Description
Output variable
Name Type Description
fbyReadFile
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
fbyWriteFile (F)
The function 'fbyWriteFile' writes to a file and returns the state.
Different from the two function blocks 'WRITE_FILE' and 'WRITE_FILE_1' of the AmkFile.lib, here the SysLibFile.lib is used.
The function is called in the asynchronous program level PLC_PRG.
User interface
fbyWriteFile
File name - strFileName fbyWriteFile - Status
Pointer to Buffer - pbySource
Buffer size - dwSize
Write mode - strMode
Input variables
Name Type Description
Output variable
Name Type Description
fbyWriteFile
It is recommended that you call blocks that work with file access in a separate task in the asynchronous
program level PLC_PRG (type "asynchronous").
fbyWritePos (F)
This function writes to a file at the desired position and returns the state.
Different from the two function blocks 'WRITE_FILE' and 'WRITE_FILE_1' of the AmkFile.lib, here the SysLibFile.lib is used.
The function is called in the asynchronous program level PLC_PRG.
User interface
fbyWritePos
File name - strFileName fbyWritePos - Status
Pointer to Buffer - pbySource
Buffer size - dwSize
Position in the file - dwPos
Create file - boCreateFile
Input variables
Name Type Description
Output variable
Name Type Description
fbyWritePos
FB_LIST (FB)
The function block 'FB_LIST' is called in the program 'PRG_ERR_HANDLER'. The block is required for the internally created
tables of this library. It realises index switching and the corresponding copying of the data.
The function block is called in the asynchronous program level PLC_PRG.
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
FB_LIST
Global alarm structure - stGlobalAlarmData stGlobalAlarmData - Global alarm structure
Data storage - arst_AlarmTab_ErrHist arst_AlarmTab_ErrHist - Data storage
FB_LIST
fboClrStructur (F)
The function 'fboClrStructur' overwrites the specified memory area completely with 0, i.e. the area is deleted.
The function is called in the asynchronous program level PLC_PRG.
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
fboClrStructur
Start address - pPointerToSt fboClrStructur - Status
Area size - uiSize
Input variables
Name Type Description
Output variable
Name Type Description
fboClrStructur
fstrGetDateStr (F)
The function 'fstrGetDateStr' convert an integer to a string variable
The function is called in the asynchronous program level PLC_PRG.
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
fstrGetDateStr
Input value - siZahl fstrGetDateStr - Output value
Input variables
Name Type Description
Output variable
Name Type Description
fstrGetDateStr
User interface
FB_READ_ERR_HISTORIE
FB execution - boExec boErr - Error
Day - usiDay iErrID - Error ID
Month - usiMonth enErrName - Name of faulty FB
Year - uiYear boDone - Ackn. "FB done"
File number - usiFileNr uiCount - Number of errors read
File name - strFileNameIn
Data storage - arstErr arstErr - Data storage
Global alarm structure - stGlobalAlarmData stGlobalAlarmData - Global alarm structure
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
FB_READ_ERR_HISTORIE
User interface
fboClrErr
Error number - uiErr fboClrErr - Ack "error deleted"
Additional information - iInfo1
Additional information - iInfo2
Global alarm structure - stGlobalAlarmData stGlobalAlarmData - Global alarm structure
Input variables
Name Type Description
Output variable
Name Type Description
fboClrErr
User interface
fboSetErr
Error number - uiErr fboSetErr - Ack "error set"
Additional information - iInfo1
Additional information - iInfo2
Global alarm structure - stGlobalAlarmData stGlobalAlarmData - Global alarm structure
Input variables
Name Type Description
Output variable
Name Type Description
fboSetErr
User interface
fusiSetErrTabRow
Number of rows - usiNoRows fusiSetErrTabRow - Number of rows
Input variables
Name Type Description
fusiSetErrTabRow
User interface
fusiSetFormat
Date format - iDateFormat fusiSetFormat - Date format
Separator - iDateSeparator
Time format - iDateClock
Input variables
Name Type Description
Output variable
Name Type Description
fusiSetFormat
User interface
fusiSetHistTabRow
Number of rows - usiNoRows fusiSetHistTabRow - Number of rows
Output variable
Name Type Description
fusiSetHistTabRow
User interface
PRG_AUTO_DEL
FB execution - boExec boDone - Ackn. "FB done"
Life time - uiLifeTime boErr - Error
uiProzess - Progress %
enErrName - Name of faulty FB
iErrID - Error ID
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
uiProzess UINT Progress (relative to the number of found *.err files) [%]
PRG_AUTO_DEL
User interface
PRG_ERR_HANDLER
Delete alarm table - bo_AlarmTab_ClrAns boErr - Error
Scrollbar in visu - boScrollbar iErrID - Error ID
"?" docu. button - boDoku enErrName - Name of faulty FB
Life time history - uiLifeTimeHist boDone - Ackn. "FB done"
History storage mode - enSaveMode boClrAnsAckn - Ack "Alarm tab. deleted"
Input variables
Name Type Description
boScrollbar BOOL With this variable, the scrollbar can be turned on and off (also during the run time)
boDoku BOOL Using this input, the documentation button "?" can be turned on or off
uiLifeTimeHist UINT Life time of the history files (if enSaveMode ≠ enSaveErrRingBuffer)
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boClrAnsAckn BOOL Response that the alarm table has been deleted
PRG_ERR_HANDLER
4.2.1.2.5.12 Visualization
VI_ALARMTAB (VI)
This visualisation can be integrated in any mask. It displays all current errors.
l The number of its rows (3.. 15) can be modified using 'fusiSetErrTabRow'.
l Using the function 'fusiSetFormat' the time and date format can be modified.
l Using the global variable 'g_stVisuAlarmTab' from the structure 'VisualObjectType', the size of the table can be modified.
l Using the variable 'g_stGlobalAlarmData.iAlarmFontHeight', the font height of the table can be changed.
VI_DOKU_ERR (VI)
This visualisation should be seen as its own mask, which is displayed when the user presses the button in the alarm or history
table.
l
Using the button, the user returns to the previous mask.
l Using dynamic language switching, error texts in the table can be displayed
VI_HISTORIE (VI)
This visualisation can be integrated in any mask. Using 'FB_READ_ERR_HISTORIE', it shows the read errors of the history.
l Its number of rows (3.. 15) can be modified using 'fusiSetHistTabRow'.
l Using the function 'fusiSetFormat' the time and date format can be modified.
l Using the global variable 'g_stVisuHistoryTab' from the structure 'VisualObjectType', the size of the table can be modified.
l Using the variable 'g_stGlobalAlarmData.iHistoryFontHeight', the font height of the table can be changed.
l
Using the button the user can access the mask 'VI_DOKU_ERR'
Using 'PRG_ERR_HANDLER.boDoku' the settings is made whether the button should appear for an error
l The scrollbar can be turned on and off using 'PRG_ERR_HANDLER.boScrollbar'
l Using dynamic language switching, error texts in the table can be displayed
l The prefix is "Error", through which ID is specified
Example:
<text prefix="Error" id="2347">
<en><![CDATA[2347 Error Temperature Motor] ] ></en><text>
User interface
CMD_HOME
FB execution - boExec boDone - Ackn. "FB done"
Actual position value - diActPosition boBusy - FB in progress
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
boBusy BOOL Execution message: This bit remains set as long as the block is being processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
CMD_HOME
4.2.1.2.7.1 NC_MOTION
l Line interpolation with up to 16 axes
l Circle interpolation cw/ccw with axes 1/2 ,1/3, 2/3, programmable in 3 planes
l Possibility of circle interpolation (axes 1-3) and simultaneous line interpolation
l Programmable delay time between two NC blocks
l Programmable stop (after NC block)
l Immediate stop (during NC block)
l Single block mode
l 32 M functions programmable as synchronised and unsynchronised
l Up to 3 M functions programmable in one NC block
l Programmable web speed
l Programmable acceleration and deceleration ramps
l Correction of the web speed due to the maximum speed of the motor
l Override 0-200%
l Tangential transition between NC blocks
(alternatively automatic calculation or manual entry of the tangential transition)
l Up to 16 programmable process data per NC block
l Exact stop using position window possible
l Display of current NC block number
l Each axis can be configured as "coupled axis"
l Each axis can be configured as round axis with associated modulo position
l Plausibility check of the input data
l Output of warning and error messages
_NCM_POS_ABSOLUTE_AXIS (FB)
With the function block '_NCM_POS_ABSOLUTE_AXIS', an individual axis is positioned absolutely.
The function block is called in the synchronous program level FPLC_PRG.
User interface
_NCM_POS_ABSOLUTE_AXIS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Execution started - boStart bodone - Ackn. "FB done"
Stop - boStop diOutValPosAbs - Actual position value
Actual position value - reActPosition boErr - Error
Position setpoint - reSetPosition boWarn - Warning
Resolution - reResolution iErrID - Error ID
Positioning velocity - reVelocity
Positioning acceleration - reAccel
Deceleration - reDeccel
Reset - boReset
Device structure - stDevice
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boStart BOOL With a positive edge, the execution of the block starts.
boStop BOOL With a positive edge, the execution of the block is aborted or completed.
reResolution REAL Feed constant: Conversion of the rotation movement to linear movement
[increments/mm]
boReset BOOL Reset; output value = 0, then the input 'boReset' is reset by the block
Output variables
Name Type Description
bodone BOOL Response that the function block has been completely executed.
_NCM_POS_ABSOLUTE_AXIS
_NCM_POS_LINE_CIRCLE (FB)
The function block '_NCM_POS_LINE_CIRCLE' positions the axes relatively with jerk limitation.
The function block is called in the synchronous program level FPLC_PRG.
User interface
_NCM_POS_LINE_CIRCLE
FB enable - boEnable StValLineCircle - Output axis 1...16
Input data - stLineCircleIn arreSpeedAxis - Actual velocity valuee
Device structure - stDevice boLineDone - Linear interp. complete
boCircleDone - Circle interp. complete
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
_NCM_POS_LINE_CIRCLE
_NCM_ST_FIFO_1 (FB)
The function block '_NCM_ST_FIFO_1' manages the FIFO storage in the asynchronous program level PLC_PRG.
User interface
_NCM_ST_FIFO_1
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Configuration NC record - stInVal boEmpty - Buffer empty
Reset - boReset boOverflow - Buffer overflow
stOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boOverflow BOOL Buffer overflow: A new value is to be saved to the buffer, but no free position is
available.
_NCM_ST_FIFO_1
_NCM_ST_FIFO_2 (FB)
The function block _NCM_ST_FIFO_2 manages the FIFO storage in the synchronous program level FPLC_PRG.
User interface
_NCM_ST_FIFO_2
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Configuration NC record - stInVal boEmpty - Buffer empty
Reset - boReset boOverflow - Buffer overflow
stOutVal - Output value
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boOverflow BOOL Buffer overflow: A new value is to be saved to the buffer, but no free position is
available.
_NCM_ST_FIFO_2
4.2.1.2.7.4 Functions
_NCM_freArctan (F)
The function '_NCM_freArctan' calculates the arctan(y/x).
The function is called in the asynchronous program level PLC_PRG.
User interface
_NCM_freArctan
Input value Y - reY _NCM_freArctan - arctan(y/x)
Input value x - reX
Input variables
Name Type Description
Output variable
Name Type Description
_NCM_freArctan
_NCM_CALC_LINE_CIRCLE (FB)
The function block '_NCM_CALC_LINE_CIRCLE' calcualtes the linear or circle interpolation for an NC data record.
The function block is called in the asynchronous program level PLC_PRG.
User interface
_NCM_CALC_LINE_CIRCLE
Centre X-axis - rePmX reLengthCircle - Circle length
Centre Y-axis - rePmY diLengthLineCircleInkr - Circle or linear length
Centre Z-axis - rePmZ reAlpha - Angle
Definition circle plane - iCharPlane reAlphaS - Start angle
Circle interp. Direction of - bocw reRS - Radius start point
rotation
Resolution - diResol reRE - Radius end point
Start point axis 1-16 - arreP1Ax rePart1 - Difference start to center
End point axis 1-16 - arreP2Ax rePart1End - Difference end to center
Round axis - arboRoundAxis rePart2 - Difference start to center
Modulo position - arreModulopos rePart2End - Difference end to center
Relative positioning - boRelativ rePart3 - Difference start to center
Coupled axis - wCoupledAxis rePart3End - Difference end to center
Code of NC dataset - iCharElem uiError - Error ID
uiWarn - Warning ID
arreRatioAx - Distance ratio
ardiEndposAx - End positions
Input variables
Name Type Description
rePmX, rePmY, rePmZ REAL Position of the circle centre, axis X / Y / Z [mm]
diResol DINT Feed constant: Conversion of the rotation movement to linear movement
[increments/mm]
wCoupledAxis WORD With the bit string 'wCoupledAxis', each axis can be configured as a coupled axis.
The coordinate values of a coupled axis are not used in the calculation of the web
speed of all other axes.
Example:
The web speed is given for the path from P1 to P2 for axis 1 and axis 2. The web
speed for axis 3 is calculated as a function of the distance that it travels so that it
arrives at the target point at the same time as axis 1 and axis 2.
Axis 3 as coupled axis: wCoupledAxis := 16#0004
Output variables
Name Type Description
reRS, reRE REAL Length of the radius at the start/end point [mm]
_NCM_CALC_LINE_CIRCLE
_NCM_CALC_SHORTPOS_MODULO (FB)
The function block '_NCM_CALC_SHORTPOS_MODULO' calculates the shortest path to the modulo positioning of a rotating
axis.
The function block is called in the asynchronous program level PLC_PRG.
User interface
_NCM_CALC_SHORTPOS_MODULO
FB enable - boEnable reShortPos - Shortest distance
Actual position value - reActPos
Target position - reEndPos
Modulo value - reModuloPos
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
_NCM_CALC_SHORTPOS_MODULO
_NCM_CALC_SPEED_LIMIT (FB)
The function block '_NCM_CALC_SPEED_LIMIT' calculates the maximum velocity of the axis, based on the maximum
permissible revolutions.
The function block is called in the asynchronous program level PLC_PRG.
User interface
_NCM_CALC_SPEED_LIMIT
FB enable - boEnable reCorrSpeed - Corrected velocity
Programmed velocity - reProgrammedSpeed
Max. revolutions - ardiMaxRev
Resolution - arreResol
Distance ratio - arreRatioAx
Code of NC dataset - iCharElem
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
_NCM_CALC_SPEED_LIMIT
User interface
_NCM_CALC_TANGENT
FB enable - boEnable boTangential - Data blocks tangential
Actual position value - arreActPosAx
Input value - stInputData
Second call - boSecondTime
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boSecondTime BOOL The function block starts only when it is called a second time
Output variables
Name Type Description
_NCM_CALC_TANGENT
_NCM_FIFO1 calls the subordinate function blocks of the asynchronous and synchronous program level.
User interface
_NCM_FIFO1
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Configuration NC record - stInVal boStoreDataDone - Ack "NC record saved"
Maximum speed 1-16 - ardiConfigMaxRev boLineDone - Ack "NC record with line"
Resolution 1-16 - arreConfigResol bocircleDone - Ack "NC record with circle"
Actual position 1-16 - arreActPosAx boStop - Ack "NC record with stop"
Round axis 1-16 - arboRoundAxis boMessageFin - Ack "NC record with end"
Modulo position 1-16 - arreModulopos dwMFunctOut - Bit string M functions
Data in FIFO - boStoreData boFifoOverflow - Buffer overflow
Reset - boReset arreprocessdataOut - Process data 1-16
NC records output - boEnRestoreData arreSpeedAxis - Velocity 1-16
Single block mode - boMSingleBlock uiCountDataSet - Output NC records
Single block output - bostep boError - Error
Stop function reset - boResStop uiError - Error ID
Ack synchr. M functions - boConfMFunct uiWarn - Warning ID
Movement immediate stop - boStopMotion parFollErr - Following distance 1-16
Influence of web speed - reOverride StValOutLineCircle - Output value 1-16
Configuration M function - dwSyncMFunction
Read actual position - boReadinActPos
Calculation max. velocity - boEnCalcSpeedLimit
Calculation tang. transf. - boEnCalcTangCon
Device structure - stDevice
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
arreModulopos ARRAY ARRAY[1..16]OF REALModoulo positions of the axes configured as round axes
[°]
boStoreData BOOL With the edge change FALSE->TRUE, an NC record adjacent to 'stInVal' is stored
in FiFo 1
The signal must be reset if 'boStoreDataDone' = TRUE (handshake).
boMSingleBlock BOOL The signal activates the single block mode, meaning one NC data block is
processed at a time. The following data block is started with 'bostep'.
bostep BOOL Starts output of an NC block (only in conjunction with 'boMSingleBlock' = TRUE).
dwSyncMFunction DWORD bit string for configuration of M functions 1..32 as synchronised or unsynchronised
M function.
l Unsynchronised means:
M function becomes TRUE with start output of the corresponding NC
block.
With output of the next NC block, the M function becomes FALSE
l Synchronised means:
M function becomes TRUE with start output of the corresponding NC
block.
The output of the next NC block is blocked.
When 'boConfMFunct' becomes TRUE, the M function becomes FALSE and the
next NC block is output.
Example for configuration of synchronous M functions:
dwSyncMFunct:=16#FFFF0000 means:
M function 1..16 unsynchronised
M function 17..32 synchronised
boReadinActPos BOOL To make possible absolute positioning, it is necessary to read the actual position
of the axes.
Typically, 'boReadInActPos' is set to TRUE when the 1st NC block is saved. Thus
the start point for the internal calculation is the actual position of the axes when
saved.
For all other NC blocks, 'boReadInActPos' = FALSE. Thus the start point for the
internal calculation is always the end point of the previous data record.
boEnCalcSpeedLimit BOOL Enable signal for internal speed limit calculation due to the maximum speed
('ardiConfigMaxRev').
TRUE: Calculation is performed.
FALSE: Calculation is not performed.
boEnCalcTangCon BOOL Enable signal for automatic calculation of a tangential transition between two NC
motion blocks.
TRUE: The calculation is performed automatically.
If a tangential transition is recognised, both motion blocks are run with the
programmed speed. No ramp down to V = 0 takes place after the 1st motion block.
FALSE: No calculation is performed.
A tangential transition can still be specified "manually" via the input structure '_
NCM_ST_GEO_IN' boTangetial.
Output variables
Name Type Description
boLineDone BOOL FALSE -> TRUE: An NC block with line interpolation was successfully output.
The next NC block is output: TRUE -> FALSE
bocircleDone BOOL FALSE -> TRUE: An NC block with circle interpolation was successfully output.
The next NC block is output: TRUE -> FALSE
boStop BOOL FALSE -> TRUE: An NC block with programmed stop was successfully output.
THe next NC block is output (boResStop = TRUE): TRUE -> FALSE.
boMessageFin BOOL FALSE -> TRUE: An NC block with programmed end was successfully output.
A new program is started or 'boReset' becomes TRUE: TRUE -> FALSE
boError BOOL FALSE -> TRUE: The plausibility check detected an error.
'boReset' becomes TRUE: TRUE -> FALSE
_NCM_FIFO1 _NCM_FIFO1.FastFunctionFifo2
_NCM_ST_GEO_IN (ST)
The structure '_NCM_ST_GEO_IN' contains all relevant data to configure an NC block.
Name Type Description
boTangential BOOL In some applications, it makes sens when the web speed is braked to zero during
the transition from NC motion block (n) to NC motion block (n+1). (Connection
between line P1/P2 and circle P2/P3)
boTangential := TRUE in the NC block of circle P2/P3 means:
The movement of the axes accelerates at P1 until the programmed web speed is
reached and decelerates to a standstill at P3.
A tangential movement between two NC motion blocks is only
possible if at least 2 NC blocks have been saved.
wCoupledAxis WORD With the bit string 'wCoupledAxis', each axis can be configured as a coupled axis.
The coordinate values of a coupled axis are not used in the calculation of the web
speed of all other axes.
Example:
The web speed is given for the path from P1 to P2 for axis 1 and axis 2. The web
speed for axis 3 is calculated as a function of the distance that it travels so that it
arrives at the target point at the same time as axis 1 and axis 2.
Axis 3 as coupled axis: wCoupledAxis := 16#0004
4.2.1.2.8 08_Sequence
User interface
SEQUENCE_STATE_CHECK
FB enable - boEnable boEnabAck - Ackn. "FB enable"
State of the step sequence - uiState uiStateTm1 - uiState(t-1)
uiStateTm2 - uiState(t-2)
uiStateTm3 - uiState(t-3)
uiStateTm4 - uiState(t-4)
uiStateTm5 - uiState(t-5)
uiStateTm6 - uiState(t-6)
uiStateTm7 - uiState(t-7)
uiStateTm8 - uiState(t-8)
uiStateTm9 - uiState(t-9)
uiStateTm10 - uiState(t-10)
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
User interface
SEQUENCE_STATE_TIMEOUT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Actual state - uiActualState boTimeOut - Time exceeded
Monitoring time - tTimeOut
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
4.2.1.2.9 09_Parameter
User interface
SAVE_PARAMETER
FB execution - boExec boDone - Ackn. "FB done"
boErr - Error
iErrID - Error ID
strErr - Clear text of the error
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
SAVE_PARAMETER
User interface
RESTORE_PARAMETER
FB execution - boExec boDone - Ackn. "FB done"
boErr - Error
iErrID - Error ID
strErr - Clear text of the error
usiPercent - Progress process
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
boDone BOOL Response that the function block has been completely executed.
RESTORE_PARAMETER
User interface
NUMPAD
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Integer - boInteger boDone - Ackn. "FB done"
Value before input - reStartValue reDisplay - Entered value as REAL
Lower limit - reMinimalValue diDisplay - Entered value as DINT
Upper limit - reMaximalValue strDisplay - Entered value as STRING
Button colour - dwButtonColor
Button alarm colour - dwButtonAlarmColor
Button text colour - dwButtonTextColor
Button text size - wButtonTextHeight
Display text size - wDisplayTextHeight
Display text colour - dwDisplayTextColor
Display colour - dwDisplayColor
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
NUMPAD
4.2.1.4 08_Devices
User interface
fstrGetControllerTyp
fstrGetControllerTyp - Rückgabewert
Output variable
Name Type Description
fstrGetControllerTyp
In the operation mode position control, 64 bit and 32 bit position function blocks are available.
64 bit position function blocks reach a higher accuracy because they have a higher resolution than 32 bits position function blocks.
With the input 'enArithmetik' the choice between 64 bit and 32 bit position function blocks is set.
In the default setting 'enAutomaticSelection' the selection is automatically adjusted, depending on the used PLC control and the
used CODESYS version.
With 'en64BitArithmetik' or 'en32BitArithmetik', the selection can be done manually by the user.
The maximum size of data type, supported by the AMK controller depends on the used CODESYS version 2 or 3.
The connection between the controller and CODESYS version is shown in the table below.
Controller CODESYS V2 CODESYS V3
iSA REAL (32 Bit) LREAL (64 Bit)
A4 LREAL (32 Bit) LREAL (64 Bit)
A5 LREAL (64 Bit) LREAL (64 Bit)
A6 REAL (64 Bit) LREAL (64 Bit)
64 bit position function blocks (en64BitArithmetik) may not be used with a 32 bit CODESYS version. A
conversion of 64 bits into 32 bits is not possible without losses. Positioning is inaccurate and misses the target
position. Consequence the state boDone/boInPos will not be TRUE.
32 bit position function blocks (en32BitArithmetik) can be used on a 64 bit CODESYS versions. The target
position is reached, but by the non-used resolution accuracy is given away.
User interface
ID_READ_10IDS_DINT
FB execution - boExec boDone - Ackn. "FB done"
Read ID - uiIDNo1 diOutValNo1 - ID number
Read ID - uiIDNo2 diOutValNo2 - ID number
: - : : - :
: - : : - :
Read ID - uiIDNo10 diOutValNo10 - ID number
Parameter instance - uiParInst boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
diOutValNo1 ... diOutValNo10 DINT Read ID value for the ID number specified at input n
ID_READ_10IDS_DINT
User interface
ID_READ_5IDS_DINT
FB execution - boExec boDone - Ackn. "FB done"
Read ID - uiIDNo1 diOutValNo1 - ID number
Read ID - uiIDNo2 diOutValNo2 - ID number
: - : : - :
: - : : - :
Read ID - uiIDNo5 diOutValNo5 - ID number
Parameter instance - uiParInst boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_READ_5IDS_DINT
User interface
ID_READ_NODE_LIST
FB execution - boExec boDone - Ackn. "FB done"
Instance - uiParInst boErr - Error
iErrID - Error ID
Node list - stList stList - Node list
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
uiParInst UINT Parameter set number or instance number, from which the node list shall be read
(e.g. Instance 5 = EtherCAT at control unit A5)
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_READ_NODE_LIST
User interface
ID_WRITE_10IDS_DINT
FB execution - boExec boDone - Ackn. "FB done"
Write ID - uiIDNo1 boErr - Error
ID value - diValNo1 iErrID - Error ID
Write ID - uiIDNo2 enErrName - Name of faulty FB
ID value - diValNo2
: - :
: - :
Write ID - uiIDNo10
ID value - diValNo10
Parameter instance - uiParInst
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
diValNo1 ... diValNo10 DINT ID value to be written for the ID number specified at input n
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_WRITE_10IDS_DINT
User interface
ID_WRITE_5IDS_DINT
FB execution - boExec boDone - Ackn. "FB done"
Write ID - uiIDNo1 boErr - Error
ID value - diValNo1 iErrID - Error ID
Write ID - uiIDNo2 enErrName - Name of faulty FB
ID value - diValNo2
: - :
: - :
Write ID - uiIDNo5
ID value - diValNo5
Parameter instance - uiParInst
Device structure - stDevice stDevice - Device structure
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
diValNo1 ... diValNo5 DINT ID value to be written for the ID number specified at input n
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_WRITE_5IDS_DINT
User interface
ID_WRITE_5IDS_TEMP_DINT
FB execution - boExec boDone - Ackn. "FB done"
Write ID - uiIDNo1 boErr - Error
ID value - diValNo1 iErrID - Error ID
Write ID - uiIDNo2 enErrName - Name of faulty FB
ID value - diValNo2
: - :
: - :
Write ID - uiIDNo5
ID value - diValNo5
Parameter instance - uiParInst
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
diValNo1 ... diValNo5 DINT ID value to be written for the ID number specified at input n
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_WRITE_5IDS_TEMP_DINT
ID26
Code Meaning
Element Nr.
10 Reserved
11 Reserved
For the list elements 12 - 17, additional codes can be selected freely. The codes are described in the parameter description, Binary
Outputs chapter.
The function block is called in the asynchronous program level PLC_PRG.
User interface
ID_WRITE_ID26
FB execution - boExec boDone - Ackn. "FB done"
Code ID26 - uiID26_12 boErr - Error
Code ID26 - uiID26_13 iErrID - Error ID
: - : enErrName - Name of faulty FB
: - :
Code ID26 - uiID26_17
Parameter instance - uiParInst
Device structure - stDevice stDevice - Device structure
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
uiID26_12 ... uiID26_17 UINT Transfer of a freely selectable status code for the element n of ID26
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
ID_WRITE_ID26
4.2.2.2.1 01_Status
From AFL version 3.10 onwards, this function block is replaced completely by
'GET_STATUSBITS_ACTUAL_VALUE_GEAR'
and therefore should not be used for new applications.
User interface
GET_STATUSBITS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
boQUE - Ackn. "DC bus ON"
boSBM - System ready message
boQRF - Ackn."Controller enable"
Configuration status - stConfigStatus stConfigStatus - Configuration status
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
4.2.2.2.2 02_Actual_Value
User interface
GET_RECTANGULAR_PULSE_INPUT
FB enable - boEnable boEnabAck - Ackn. "FB enable"
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
boRefPulse - Homing pulse
diOutVal - Pulse encoder input
diOffset - Shift Homing.Pulse
Device structure - stDevice stDevice - Device structure
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boRefPulse BOOL Homing pulse: Pulse at which the current counter value is entered in the reference
counter
diOffset DINT Offset value [increments] of the counter value to the homing pulse
GET_RECTANGULAR_PULSE_INPUT
User interface
GET_STATUSBITS_ACTUAL_VALUE_GEAR
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Gear multiplier - diMultiplier boErr - Error
Gear divider - udDivider iErrID - Error ID
enErrName - Name of faulty FB
boQUE - Ackn. "DC bus ON"
boSBM - System ready message
boQRF - Ackn."Controller enable"
boStatusID26_2 - State ID26, element 2
boStatusID26_3 - State ID26, element 3
: - :
: - :
boStatusID26_17 - State ID26, element 17
diActualPosition - Actual position value
diActualVelocity - Actual velocity value
diActualTorque - Actual torque value
diRectangularPulsInput - Pulse square-wave encoder
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
diOutRectangularPulsInput_ DINT Actual value of the pulse encoder input X132 [increments]
X132
GET_STATUSBITS_ACTUAL_VALUE_GEAR
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
GET_STATUSBITS_ACTUAL_VALUE_GEAR_WITHOUT_
RECT
4.2.2.3 04_Setpoint_Level
4.2.2.3.1 01_Setpoint
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boUE BOOL Bit for switching the converter (DC bus voltage on). The corresponding return
message QUE is a precondition for RF.
diResidDistWind DINT The residual distance window specifies the area within which the axis returns to
the initial position for RF return. This settings is only relevant for position setpoint
specification.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
SET_SET_POINTS_AND_FEED_FORWARD_GEAR
User interface
SET_SET_POINTS_GEAR
FB enable - boEnable boEnabAck - Ackn. "FB enable"
DC bus On - boUE boErr - Error
Controller enable - boRF iErrID - Error ID
Clear error - boFL enErrName - Name of faulty FB
Selection mode - enMode boSetPosEnabAck - Ackn. setpoint position
Residual distance window - diResidDistWind boSetVelocityEnabAck - Ackn. setpoint velocity
Gear multiplier - diMultiplier boSetTorqueEnabAck - Ackn. setpoint torque
Gear divider - udDivider boResidDistDone - Resid. distance is cleared
Velocity setpoint - diSetVelocity
Torque setpoint - diSetTorque
Actual position value - diActPosition
Position setpoint - diSetPosition diSetPosition - Position setpoint
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boUE BOOL Bit for switching the converter (DC bus voltage on). The corresponding return
message QUE is a precondition for RF.
diResidDistWind DINT The residual distance window specifies the area within which the axis returns to
the initial position for RF return. This settings is only relevant for position setpoint
specification.
Output variables
Name Type Description
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
SET_SET_POINTS_GEAR
4.2.2.4 06_Diagnose
User interface
DIAGNOSE_ERROR
FB execution - boExec boDone - Ackn. "FB done"
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
Diagnostic message - arstDiagnosis arstDiagnosis - Diagnostic message
Input variables
Name Type Description
boExec BOOL Function execution: With a positive edge, the execution of the block starts.
As long as 'boExec' = TRUE, the block is processed by the PLC.
In the state 'boExec' = FALSE execution of the block is ended.
Output variables
Name Type Description
boDone BOOL Response that the function block has been completely executed.
DIAGNOSE_ERROR
User interface
DIAGNOSE_TRACE_CSV
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - stInVal boEmpty - Buffer empty
boOverflow - Buffer overflow
stOutVal - Output value
boWriteFileDone - Write file is done
boWriteFileErr - Error during write file
iWriteFileErrID - Write error ID to file
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
boOverflow BOOL Buffer overflow: A new value is to be saved to the buffer, but no free position is
available.
User interface
DIAGNOSE_TRACE_VAL1_TO_VAL10
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Write to CSV file - boWriteToFile boWriteFileDone - Write file is done
Input value - diValue1 boWriteFileErr - Error during write file
: : iWriteFileErrID - Write error ID to file
Input value - diValue10
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boWriteToFile BOOL With a positive edge, the recorded FIFO contents are written to a CSV file on the
controller.
Output variables
Name Type Description
From AFL version 3.10 onwards, this function block is replaced completely by
'GET_STATUSBITS_ACTUAL_VALUE_GEAR'
and therefore should not be used for new applications.
User interface
GET_ACTUAL_VALUE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
boErr - Error
iErrID - Error ID
enErrName - Name of faulty FB
Device structure - stDevice stDevice - Device structure
act sync
diOutActPos - Actual position value
diOutActVelocity - Actual velocity value
diOutActTorque - Actual torque value
diOutRectangularPulsInput_X132 - Pulse square-wave encoder
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diOutRectangularPulsInput_ DINT Actual value of the pulse encoder input X132 [increments]
X132
GET_ACTUAL_VALUE GET_ACTUAL_VALUE.actSync
From AFL version 3.10 onwards, this function block is replaced completely by
'GET_STATUSBITS_ACTUAL_VALUE_GEAR'
and therefore should not be used for new applications.
User interface
GET_STATUSBITS_ACTUAL_VALUE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Home position valid - boID33036_RFP_known boErr - Error
Gear multiplier - diMultiplier iErrID - Error ID
Gear divider - udDivider enErrName - Name of faulty FB
boQUE - Ackn. "DC bus ON"
boSBM - System ready message
boQRF - Ackn."Controller enable"
Configuration status - stConfigStatus stConfigStatus - Configuration status
Device structure - stDevice stDevice - Device structure
act sync
diOutActPos - Actual position value
diOutActVelocity - Actual velocity value
diOutActTorque - Actual torque value
diOutRectangularPulsInput_X132 - Pulse square-wave encoder
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diOutRectangularPulsInput_ DINT Actual value of the pulse encoder input X132 [increments]
X132
GET_STATUSBITS_ACTUAL_VALUE GET_STATUSBITS_ACTUAL_VALUE.actSync
From AFL version 3.10 onwards, this function block is replaced completely by
'SET_SET_POINTS_GEAR'
and therefore should not be used for new applications.
User interface
SET_CONTROLBITS_SETPOINT_SETVALUES
FB enable - boEnable boEnabAck - Ackn. "FB enable"
DC bus On - boUE boErr - Error
Controller enable - boRF iErrID - Error ID
Ackn."Controller enable" - boQRF enErrName - Name of faulty FB
Clear error - boFL boSetPosEnabAck - Ackn. setpoint position
Selection mode - enMode boSetVelocityEnabAck - Ackn. setpoint velocity
Residual distance window - diResidDistWind boSetTorqueEnabAck - Ackn. setpoint torque
boResidDistDone - Resid. distance is cleared
Device structure - stDevice stDevice - Device structure
act sync
Velocity setpoint - diSetVelocity
Torque setpoint - diSetTorque
Actual position value - diActPosition
Position setpointsystem - diSetPosition diSetPosition - Position setpointsystem
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boUE BOOL Bit for switching the converter (DC bus voltage on). The corresponding return
message QUE is a precondition for RF.
diResidDistWind DINT The residual distance window specifies the area within which the axis returns to
the initial position for RF return. This settings is only relevant for position setpoint
specification.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
SET_CONTROLBITS_SETPOINT_SETVALUES SET_CONTROLBITS_SETPOINT_SETVALUES.actSync
From AFL version 3.10 onwards, this function block is replaced completely by
'SET_SET_POINTS_AND_FEED_FORWARD_GEAR'
and therefore should not be used for new applications.
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
boUE BOOL Bit for switching the converter (DC bus voltage on). The corresponding return
message QUE is a precondition for RF.
diResidDistWind DINT The residual distance window specifies the area within which the axis returns to
the initial position for RF return. This settings is only relevant for position setpoint
specification.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
SET_SET_POINTS_AND_FEED_FORWARD SET_SET_POINTS_AND_FEED_FORWARD.actSync
User interface
SET_SETPOINT_POSITION_ABSOLUTE
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Position setpoint - diSetPosition boErr - Error
iErrID - Error ID
Device structure - stDevice stDevice - Device structure
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
diSetPosition DINT Specification of the position setpoint (position setpoint system) [increments]
Output variables
Name Type Description
SET_SETPOINT_POSITION_ABSOLUTE
4.2.2.6 Support
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
CONTROL_UE_RF
'DC bus on' - boInput_UE boQutput_UE - Output 'DC bus on'
'Controller enable' - boInput_RF boOutput_RF - Output 'Controller enable'
'Acknowledgement - boInput_QRF
controller enable'
'Acknowledgement DC bus - boInput_QUE
on'
Input variables
Name Type Description
Output variables
Name Type Description
Verwendungshinweis im CoDeSys-Programm
PLC_PRG (asynchroner Programmteil) FPLC_PRG (synchroner Programmteil)
CONTROL_UE_RF
'Support' functions and function blocks will not be used directly. They are called as subroutines by other
functions or function blocks.
User interface
RATIO_INC_ABS
FB enable - boEnable boEnabAck - Ackn. "FB enable"
Input value - diInVal boErr - Error
Gear multiplier - diMultiplier iErrID - Error ID
Gear divider - udDivider diOutVal - Output value
Input variables
Name Type Description
boEnable BOOL Enable signal: With a positive edge, the initialisation of the block starts.
As long as 'boEnable' = TRUE, the block remains enabled and is processed by the
PLC.
In the state 'boEnable' = FALSE the block is no longer enabled and is thus no
longer processed.
Output variables
Name Type Description
RATIO_INC_ABS
The chapter 'Functions' contains further examples with the following topics:
l IO access
l Additional variable access
l Communication between PLC and PLC
l Cam
l Importing a PLC project
l Control Variants
l Visualization
4.3.1.1 Prerequisites
Hardware / Firmware Software / AFL 4 Version
Hardware: AMKAMAC A4 controller Software: ≥ AIPEX PRO Version 3.03 2015/41 part-no. 205890
Firmware: ≥ V4.21 2017/08 part-no. 206755 AFL Library: ≥ AFL V4 Version 3.5.5.0 2015/41 part-no. 206004
Hardware: AMKAMAC A5 controller Software: ≥ AIPEX PRO Version 3.00 2013/50 part-no. 204905
Firmware: ≥ A5 V4.11 2013/50 part-no. 204756 AFL Library: ≥ AFL V4 Version 3.5.3.0 2014/06 part-no. 204786
Hardware: AMKAMAC A6 controller
Firmware: ≥ A6 V4.11 2014/24 part-no. 204760
Hardware: AMKASMART iSA controller Software: ≥ AIPEX PRO Version 3.03 2015/41 part-no. 205890
Firmware: ≥ iSA V4.20 2015/26 part-no. 205729 AFL Library: ≥ AFL V4 Version 3.5.5.0 2015/41 part-no. 206004
AMK A5 controls with firmware ≥ A5 V4.11 2013/50 AMK part-no. 204756 can be programmed with CODESYS
V3 or CODESYS V2. The default setting is CODESYS V2. Change to V3: Siehe 'Version change' auf Seite 638.
Open the Direct mode. Siehe 'Direct mode' auf Seite 122.
Prerequisite:
Before creating the AIPEX PRO project, the CODESYS version must be set.
CODESYS Version change: Siehe 'Version change' auf Seite 638.
Check the wiring and the system statuses if devices are not shown.
You can customize the device names ('Station names') to your application. The device names are added to the PLC project
automatically as symbolic device names (PLC variables).
The CODESYS version set on the controller determines which CODESYS version is opened. CODESYS
Version change: Siehe 'Version change' auf Seite 638.
If you only change the CODESYS version now, you will have to create the AIPEX PRO project anew.
Procedure Menu 'Project'→ 'New'. See beginning of section.
The physically existing device names (from the AIPEX PRO device tree) are imported into the PLC project automatically as 'PLC
device handle name' (described in the documentation as symbolic device names). The extension 'g_st' stands for a global
structure variable.
This function is activated and deactivated in the menu 'Extras' → 'Options' → 'Configuration create' → 'Import device names
when creating a PLC project'.
Additional information:
The symbolic device names can also be created manually. In this case, the link between devices interface and symbolic device
names must be assigned manually. This takes place after you have called the AIPEX menu 'Configuration' → 'Configuration
create'. Siehe 'Automatic bus configuration' auf Seite 711.
Open the 'V3_Import.export' file. You can find the file under the Windows 7 path:
C:\Programme (x86)\3S CODESYS\AmkAddition\Imports\Application\V3_import
Is nothing displayed in the 'Import' window? Change to the 'POUs' CODESYS tab.
You can instantiate the function block by assigning its own name to it.
Click in an empty line in the program editor. Press the 'F2' button to open the 'Input assistant'.
You can instantiate the function block by assigning its own name to it.
The 'STANDARD_AXIS' function block needs the 'BASIC_MOTION' function block and 'ST_AXIS_DRIVE' structure.
'STANDARD_AXIS' consists of an asynchronous functional part that is called in the PLC_PRG and a synchronous functional part
that is called in the FPLC_PRG.
Additional information:
Description of function block: Siehe 'STANDARD_AXIS (FB) (STANDARD_AXIS_KWZ, STANDARD_AXIS_IDT4, STANDARD_
AXIS_ihX)' auf Seite 201.
Description of structure: Siehe 'ST_AXIS_DRIVE (ST)' auf Seite 191.
Click in an empty line in the program editor. Press the 'F2' button to open the 'Input assistant'.
You can instantiate the function block by assigning its own name to it.
[Arrow grey] The symbolic device name is assigned to a device (interface) in the AIPEX PRO device tree
[Arrow colored] The symbolic device name is not assigned. Siehe 'Automatic bus configuration' auf Seite
711.
Additional information:
If activated, the configurator changes the relevant parameters automatically. Click on the + icon. You will see which function blocks
are assigned to a symbolic device name.
Activating/deactivating or function block specific changes:
Siehe 'Project Settings - Configuration create (project specific)' auf Seite 108.
With the 'Target ID' active, those controllers suited to your project are displayed only automatically. Make your choice based on the
'device address'.
Representation of the AMK controller's TCP/IP address under CODESYS V3. Only the last 4 digits are
decisive.
Example: The controller is in a network with the TCP/IP address 172.16.xxx.xxx.
CODESYS V3 AMK controller
Device address TCP/IP address
0000.047C (hex) 172.16.4.124 (dec)
0001.A000.0462 (hex) 172.16.4.098 (dec)
Prerequisite:
l Initial start-up of motor completed
l EF/EF2 (STO) hardware signals present
l Any emergency-stop circuits are closed
Log on
Load the intermediate DC link by setting the 'boUE' input variable of the 'fbStdEinspeisung' function block to 'TRUE'.
(acknowledgement signal for error-free loading 'boQUE = TRUE')
Activate the motor control by setting the 'boRF' input variable of the 'fbStdAntrieb_R06' function block to 'TRUE'.
'boRF = TRUE' is applied with 'Write values [Ctrl + F7]'.
Acknowledgement signal for error-free activation of the motor control 'boQRF = TRUE'
The drive system is ready to process setpoints.
(The AFL Application block visualizations contained in an additional library. Siehe 'Visualization of AFL blocks' auf Seite 806. )
The displayed texts (German and English) are stored in a text list: folder 'POUs' → 'Standard' → 'Visualizations'
→ 'Standard' → 'TextListStandard'
4.3.1.12 Functions
Generate a 'Write' function block for the output module (AIO-8DO-P) in the same way
Testing
Create the project: Siehe 'Creating PLC program and message configuration' auf Seite 663.
PLC function blocks for the time stamp IO access are provided with the 'AmkDevAccess' AMK library.
See: Folder: 'POUs' → 'DeviceAccessSync' → 'TimeStamp'
Function block GET_TS_INPUTS (time stamp inputs)
Function block SET_TS_OUTPUTS (time stamp outputs)
Description of the measurement inputs and time stamp outputs of the A5 control:
See product description Controllers A4 / A5 / A6 Section: 'Measurement Inputs' and Section 'Time Stamp
Outputs'
Alternatively, you can activate the 'Update all variables in all devices' option.
Additional information:
You can instantiate the created FDEV module for all devices in the PLC project that have the same device type.
E.G. DEVICE: KW-R06.
If your PLC project contains different device types (e.g. an additional DEVICE: KW-R07), you have to select the
'interface' of this device and execute the 'Additional variable access' function in exactly the same way.
Consistent data transmission is only guaranteed with an instance call in the synchronous FPLC_PRG program
module.
You can instantiate the function block by assigning its own name to it.
Testing
Create the project: Siehe 'Creating PLC program and message configuration' auf Seite 663.
Start the PLC: Siehe 'Testing PLC project' auf Seite 666.
Parameterization of controllers
In the cross communication between AMK controls the following parameters must be configured:
Use the function AIPEX PRO 'Direct Mode'
EtherCAT Master
Instance Parameter Value Meaning
5 ID1204 'XML file' Bus configuration file
ID1205 'XML file' Bus configuration file
ID1206 'XML file' Bus configuration file
ID1207 'XML file' Bus configuration file
ID34023 'BUS address participant' 0xFF Default address, can be assigned in the bus system only once
ID34024 'BUS transmit rate' 100.000 By default, equivalent to 100 Mbps,
ID34025 'BUS mode' 0x2 Master
ID34026 'BUS mode attribute' 0x0 -
ID34140 'AS BUS protocol' 0x41 EtherCAT Master / Slave
ID34143 'Usage port' 0x2 CC bus (cross communication between controllers)
EtherCAT Slave
Instance Parameter Value Meaning
2 ID34023 'BUS address participant' 0 Default address, automatic addressing
ID34024 'BUS transmit rate' 100.000 By default, equivalent to 100 Mbps,
ID34025 'BUS mode' 0 Slave
ID34026 'BUS mode attribute' 0 -
ID34140 'AS BUS protocol' 0x41 EtherCAT slave option A-SEC
ID34143 'Usage port' 2 CC bus (cross communication between controllers)
The run up of the cross communication must be completed faster than the drive field bus. If needed you can
use at the drive field bus master a run up delay time via ID34026 'BUS mode attribute'.
After parameterization, both (all) controllers must be restarted (24 VDC OFF / ON)
After restarting the cross communication is active. The ACC master is connected via the ACC (CC) connection with the ACC slave.
Read a configuration and save the project: AIPEX PRO 'Online' menu → 'Login'
Save the project: AIPEX PRO menu 'Project' → 'Save as...'
Transfer the 'PLC device handle name' (symbolic device name) of the PLC_Master controller to the PLC program.
Link the function block variable 'stPlcVar' with the communication variable (g_stPLCVAR_A).
Communication settings
Siehe 'Creating PLC program and message configuration' auf Seite 663.
Communication settings section
Transfer the 'PLC device handle name' (symbolic device name) of the PLC_Slave_02 controller to the PLC program.
Communication settings
Siehe 'Creating PLC program and message configuration' auf Seite 663.
Communication settings section
l A new PLC communication variable must be created for each SET_ transmission block.
l One PLC communication variable can be linked to any number of PLC slave controllers.
l Follow the same procedure if you want to exchange data between two slave PLCs.
4.3.1.12.4 Cam
Prerequisite of Cam:
A5 devices with additional option PCO (PLCopen) or A5D device with additional option PNC (PLCopen CNC).
In the 'Import online' window, check whether all physical devices have been detected.
Press 'Accepted to the project complete' to import the device data.
Check the wiring and the system statuses if devices are not shown.
Open the AIPEX PRO project with the integrated PLC project.
Before the PLC program is transferred to the controller, it must first be translated without error and the message configuration must
be generated.
Start this process under 'Configuration' → 'Configuration create'.
Siehe 'Creating PLC program and message configuration' auf Seite 663.
Version overview
AIPEX PRO + integrated CODESYS V3 version + compatible AFL Version
AIPEX PRO CODESYS V3 CODESYS profile compatible AFL version
version version
3.04 3.5.10.4 CODESYS V3.5 SP10 Patch 4 AIPEX PRO AFL V4 Version 3.5.5.0 2015/41
3.5.5.5 CODESYS V3.5 SP5 Patch 5 AIPEX PRO (part-no. 206004)
3.5.3.6 CODESYS V3.5 SP3 Patch 6 AIPEX PRO AFL V4 Version 3.5.3.0 2014/06
(part-no. 204786)
3.03 3.5.5.5 CODESYS V3.5 SP5 Patch 5 AIPEX PRO AFL V4 version 3.5.5.0 2015/41
(part-no. 206004)
3.02 3.5.3.6 CODESYS V3.5 SP3 Patch 6 AIPEX PRO AFL V4 version 3.5.3.0 2014/06
3.01 (part-no. 204786)
3.00
Corresponding CODESYS version must also be installed when installing AIPEX PRO.
From AIPEX PRO version 3.03 a manual or automatic CODESYS V3 version control is offered.
AIPEX PRO menu 'Extras' → 'Options' → 'Configuration create' → 'Manuel version control (CODESYS V3)'
From AIPEX PRO version 3.03 a manual or automatic CODESYS V3 version control is offered.
Manual version control (CODESYS V3) 'disabled' (Default setting)
l Create a new CODESYS V3 project → A new CODESYS V3 project will always be created with the latest installed
CODESYS V3 version.
l Open a existing CODESYS V3 projec → AIPEX PRO automatically detects with which CODESYS V3 version an existing
CODESYS V3 project was created. AIPEX PRO automatically opens the matching CODESYS V3 version. Is the matching
CODESYS V3 version not installed, the project will open with the latest installed CODESYS V3 version.
Here, the variables are analyzed, the linked symbolic device names determined and displayed in the '*.project' allocation window.
CODESYS V3
You can find the created bus configuration under 'Application' → 'Globals' → 'DeviceConfig'
If application modules containing relevant information for the automatic bus configuration are to be provided in
a separate 'Internal CODESYS V3.5 library', then they have to be 'library' type modules. The 'compiled-library'
type is not allowed!
Despite having the correct IEC61131-3 syntax, some constructs cannot be resolved for the configurator. This means that no bus
messages are generated for the cases described. The PLC program itself, however, is functional. Only access to the bus message
when calling up the corresponding basic function block (with 'boEnable := TRUE') will result in an error message (iErrID := 1).
These restrictions are shown below by means of examples. The symbolic device for the following examples ('SymbolicDevice'
variable) is defined in the next diagram.
Variant 1: Calling of a function block in the cyclical program 'PLC_PRG' or 'FPLC_PRG' (standard module call)
Variant 2: Call encapsulated in its own function block (function block definition)
Variant 3: Call of the function block or an action from another scope of application
Example:
Controller type: Display controller A5 with ATOM (X86 Intel) processor
Unlocked factory options: A5-VIS (Web visualization) (Default display controller)
A5-PCO (PLCopen (CODESYS 'SM_PLCopen.lib')) (AMK part-no. O844)
The AMK target system must exactly match the existing controller variant (hardware). The 'Login' on the
controller is not possible, when the selected AMK target system and the controller variant differ.
Only CODESYS options can be used, which were considered in the controller order and are unlocked from the
AMK factory.
Example:
For an ISA controller with additional option PCO (PLCopen) and option VIS (visualization) uses the target system:
ArmPLCopenControlWithVisu V3.
After disabling the checkbox 'PLCopen' the device will be a iSA controller with additional option VIS (visualization) with target
system: ArmControlWithVisu V3.
The CODESYS option selection in AIPEX PRO 'Direct Mode' menu 'PLC' accesses the ID34175 'Controller settings' bits 8..10.
The following table shows how by setting the bits 8..10, a originally type of controller variant and the associated AMK target system
will be changed to a new controller variant with new associated AMK target system.
Example:
Factory unlocked CODESYS Option PLCopen (CODESYS 'SM_PLCopen.lib')
Bit9 = 1 = Option PLCopen disabled
Bit9 = 0 = Option PLCopen enabled
Installed AMK target system A5/A6 A5/A6 A5/A6 AMK target system for CODESYS
options for CODESYS on delivery -VIS -PCO -PNC after disabling options
- X86Control V3 - - - X86Control V3
A5/A6-VIS X86ControlWithVisu V3 Bit 8 = 1 - - X86Control V3
A5/A6-PCO X86PLCopenControl V3 - Bit 9 = 1 - X86Control V3
A5/A6-VIS, X86PLCopenControlWithVisu V3 Bit 8 = 1 - - X86PLCopenControl V3
A5/A6-PCO - Bit 9 = 1 - X86ControlWithVisu V3
Bit 8 = 1 Bit 9 = 1 - X86Control V3
A5/A6-PNC X86PLCopenCncControl V3 - - Bit 10 = 1 X86PLCopenControl V3
- Bit 9 = 1 Bit 10 = 1 X86Control V3
A5/A6-VIS, X86PLCopenCncControlWithVisu V3 Bit 8 = 1 - - X86PLCopenCncControl V3
A5/A6-PNC - - Bit 10 = 1 X86PLCopenControlWithVisu V3
Bit 8 = 1 - Bit 10 = 1 X86PLCopenControl V3
- Bit 9 = 1 Bit 10 = 1 X86ControlWithVisu V3
Bit 8 = 1 Bit 9 = 1 Bit 10 = 1 X86Control V3
Installed AMK target system iSA iSA iSA AMK target system for CODESYS
options for CODESYS on delivery -VIS -PCO -PNC after disabling options
- ArmControl V3 - - - ArmControl V3
iSA-VIS ArmControlWithVisu V3 Bit 8 = 1 - - ArmControl V3
iSA-PCO ArmPLCopenControl V3 - Bit 9 = 1 - ArmControl V3
iSA-VIS, ArmPLCopenControlWithVisu V3 Bit 8 = 1 - - ArmPLCopenControl V3
iSA-PCO - Bit 9 = 1 - ArmControlWithVisu V3
Bit 8 = 1 Bit 9 = 1 - ArmControl V3
iSA-PNC ArmPLCopenCncControl V3 - - Bit 10 = 1 ArmPLCopenControl V3
- Bit 9 = 1 Bit 10 = 1 ArmControl V3
iSA-VIS, ArmPLCopenCncControlWithVisu V3 Bit 8 = 1 - - ArmPLCopenCncControl V3
iSA-PNC - - Bit 10 = 1 ArmPLCopenControlWithVisu V3
Bit 8 = 1 - Bit 10 = 1 ArmPLCopenControl V3
- Bit 9 = 1 Bit 10 = 1 ArmControlWithVisu V3
Bit 8 = 1 Bit 9 = 1 Bit 10 = 1 ArmControl V3
Alongside full "CODESYS V3" programming system scope, the user also has access to various AMK-specific libraries customized
for drive functionality (see Table 1). The functional scope of these libraries essentially corresponds to that of the libraries
embedded in CODESYS V2.3 which support automatic bus configuration. This means that it is relatively easy to convert existing
CODESYS V2 projects into CODESYS V3 projects.
The current version of AIPEX PRO supports both CAN-based bus configuration (ACC = AMK CAN communication) and EtherCAT
bus configuration in the context of automatic bus configuration.
Based on the respective controller, AIPEX PRO can be used to create sample projects (templates) for specific target systems
which provide the starting point for a new CODESYS V3 project and the basis of automatic bus configuration.
AIPEX PRO V3 thus supports:
l The configuration of a device topology with all components that can be accessed via ACC or EtherCAT (controllers, drives,
I/O modules, etc.).
l The programming of controllers with CODESYS V3 using AMK libraries.
l Functional access (via AMK function blocks) to all components that can be accessed via the buses.
l Communication (synchronous/asynchronous) between AMK PLC modules (via AMK function blocks).
l Automatic generation of the information required for bus communication on this basis.
iErrID > 0 local diagnostic information according to the relevant module specification
iErrID < 0 global diagnostic information according to the subsequent
The devices created in the control configuration are referred to as 'symbolic device names' in the AMK
documentation.
A PLC function block is allocated to a physically existing device via the 'stDevice' variable. To do this, link the 'stDevice' variable
with the symbolic device name.
The chapter 'Quick start' contains further examples with the following topics:
l Visualising a diagnostic array (arstDiagnosis)
l IO access
l Additional variable access
l Creating a cam
l Importing a PLC project from AIPEXPRO
l Importing a PLC project
l Expanding status bits
l Access to PLC IOs
Template
You define with Template the start template of a new CODESYS project.
You can choose between ST structured text FBD function block diagram or if installed AFL library.
ST is the default adjustment.
Docked
The PLC editor CoDeSys is incorporated directly in the AIPEX PRO interface. If this option is not set, then the PLC editor CoDeSys
will be started as an independent application.
Login automatically
If a configuration is created without faults, the CoDeSys function "Logon" is invoked.
Example CODESYS V2
You will find the symbolic device names at 'Resources' -> 'Controller configuration' -> 'PLC configuration'.
In the device tree from AIPEX PRO is the PLC device handle name linked with the attendant device icon 'Interface' automatically.
The automatic message configuration use this information to create a message configuration file.
Expert mode
No new "bus configuration" is created under CoDeSys -> Logon.
Changes in the PLC program are ignored that would have a new bus configuration as a consequence.
Example:
If the AMK function block 'SET_CTRL_INVERTER_ON_x_RF' is used in CoDeSys, AIPEX PRO sets the value of the ID32796
source controller enable to 5 (importance: Signal controller enable is set by the PLC).
The IDs and their significance are described in the parameter description.
If there is no data set for a concrete device type, the general ("other") data set is used.
Using the button Add you can assign own device parameters to the PLC functions.
Using the button Delete you can delete own device parameters.
Pressing the Specification button resets to the original AMK conditions.
Check the wiring and the system statuses if devices are not shown.
Open the tab 'Configuration' to set fix addresses to each EtherCAT drive. Following you have to restart the system.
Save the imported project under 'Project' 'Save as...'. You can assign a different name to the PLC project.
PLC missing:
Right-click in the device tree. You can customize the view under 'Select view'.
The physical device names are automatically imported as symbolic device names (variables) into the PLC project on the 'Import
device names' window.
The 'Import device names' window can be opened manually in the tab 'Configuration (PLC selected)' 'PLC
properties'.
The function can be enabled and disabled under 'Extras' 'Options' Configuration create'.
Only if you use power supply module KE/KEN/KES (exception KEN 05-xx).
The devices AMKASMART iC und AMKASYN KEN 05-xx charge automatically the DC-Bus to supply the
connected inverters.
Import the function 'AflImportStandardKE' via the menu 'Edit' 'Macros' 'AflImportStandard'.
In the PLC_PRG Declare Variable editor, create an instance of type 'STANDARD_KE' ( in this example, fbSupply_1) for each
physical axis.
Right-click on the variable. You can then open the 'Declare Variable' window (CTRL + F2).
The function block 'STANDARD_KE' can be found in the Input assistant under 'User defined Function Blocks' 'Standard'.
The function block 'fbSupply_1' can be found in the Input assistant under 'Local Variables'.
Import the function 'AflImportBasicControl' via the menu 'Edit' 'Macros' 'AflImportBasic'.
Import the function 'AflImportStandardAxis' via the menu 'Edit' 'Macros' 'AflImportStandard'.
The function block 'STANDARD_CONTROL' can be found in the Input assistant under 'User defined Function Blocks'.
Import the function 'AflImportBasicDrive' via the menu 'Edit' 'Macros' 'AflImportBasic'.
FB BASIC_MOTION functions
l Homing cycle
l Absolute positioning
l Relative positioning
l Speed control
l Jog mode
Import the function 'AflImportStandardAxis' via the menu 'Edit' 'Macros' 'AflImportStandard'.
Create a global structure variable of type 'ST_AXIS_DRIVE' (in this example, g_stAxisDrive1) for each physical axis in the Declare
Variable editor.
The Declare Variable editor for global variables can be found under 'Resources' 'Global Variables' 'Global_Variables'.
Right-click on the structure variable. You can then open the 'Declare Variable' window (CTRL + F2).
The declared structure variable allows you to access all axis-specific data. Siehe 'ST_AXIS_DRIVE (ST)' auf Seite 191.
The function block 'STANDARD_AXIS' can be found in the Input assistant under 'User defined Function Blocks' 'Standard'.
The function block 'fbAxis_1' can be found in the Input assistant under 'Local Variables'.
PLC_PRG.fbAxis_1.actSync
(
stAxisDrive := (* axis structure in example g_stAxisDrive1 *),
stDevice := (* symbolic device name in example g_stDrive 1*)
);
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Storage location:
CODESYS V2
'Data types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Expand status bit description: Siehe Expanding standard bits auf Seite 800.
4.3.2.16 Visualisation
CODESYS contains an integrated visualisation editor. With the visualisation editor, graphic interfaces are generated with which
the user can control and monitor the PLC program.
For AMK function blocks there are preconfigured visualisation elements.
A description of how to link a standard axis to a visualisation element is provided in the steps to follow.
With the left mouse button held down, you can drag a visualisation element to any location. The exact size can be modified.
To do so, double-click the visualisation element. The 'Visualisation' dialog box then opens.
Click on the 'Placeholder' button. Here you can set the connections to the program code.
AIPEX PRO must be working online before you can login under 'CODESYS' 'Login' onto the PLC.
You can now control your drive system with the visualisation that you have created.
AMKASYN KE/KW - Switch-on and -off flow chart: See documentation KE/KW Initial startup (AMK part no. 204539) chapter
'Switch-on and -off flow chart
AMKASMART iC/iX/iDT5 - Switch-on and -off flow chart: See documentation iC/iX/iDT5 Initial startup (AMK part no. 204737)
chapter 'Switch-on and -off flow chart.
Define the connection under 'Data array'. You can find the diagnostic array 'arstDiagnosis' in the structure 'ST_AXIS_DRIVE'.
Import the variable you wish to display in the table under 'Configure columns'.
Then select the variables one by one to customise the table header and width.
Function test: Prerequisite: AIPEX PRO logged in, CoDeSys logged in, PLC running.
Link the interface to a formal function block. Call up the Extended variable accesses menu item for that.
Select for that the drive (interface) for which a new function module should be created.
Under CODESYS Help, you will find detailed information on cams and the acconpanying settings. Please use these.
After translation, you can find the cam data under 'Global Variables'.
The list elements 2 - 11 are pre-assigned as follows: Siehe 'ST_STATUSBITS (ST)' auf Seite 192.
For the list elements 12 - 17, additional codes can be selected freely. Refer to the device description for the codes.
This example demonstrates how to import the bit messages Code 33135 EF2 ctr bit for power output enable and Code 33136 EF
ctr bit for power output enable in addition to the available status bits.
Open AMK's function block 'STANDARD_AXIS'. Under Declare Variable, add the initial values to the 'fbWriteID26' declaration.
CODESYS V3
'POUs' → 'Control' → 'Standard' → 'Types' → 'AMK_AXIS_STRUCTURE' → 'Interface'
Following the initial automatic writing process (WriteID26) of the status bits, the device needs to be restarted.
Assign the symbolic variables to the physically existing in- and outputs.
After the message configuration has been created, the system needs to be rebooted.
Examples:
Function block Visualisation
COMPARE_2VALUES ViCOMPARE_2VALUES
PRINT_MARK_CONTROL ViPRINT_MARK_CONTROL
MODULO_COUNT ViMODULO_COUNT
4.4.1 CODESYS V3
The visualizations of function blocks are include in an additional library from AFL version 3.5.3.1.
The library AmkAfl_Visu.library is not included in the standard templates and must be manually added to the CODESYS project .
You can get further information about PLC programming with CODESYS from the software description AIPEX PRO V3 (AMK part
no. 204979)
4.4.2 CODESYS V2
CODESYS user interface 'Library Manager': Visualization with its stored variables:
Double click on the inserted visualization block or click with the right mouse button and select 'Configure'.
A B
BIN
A1
Binary (digital)
Analog input 1
Ax-PCO
PLCopen
C
CRC
Ax-VIS Cyclic redundancy check (Checksum)
Web visualization
CAN
A-SIP Controller Area Network
EtherNET/IP slave interface
A-SCN D
CAN /ACC bus slave interface
DO
A-SPN Digital output
Profinet IO Device interface
DI
A-SEC Digital input
EtherCAT slave interface
Default
A-MEC Factory setting
EtherCAT master interface
DEZ
AIO Decimal
AMKAMAC I/O terminals
Ax-PNC E
Numerical Control Motion
EnDat 2.2
A-SPB Motor encoder interface protocol of the company Heidenhain
Profibus DP slave interface
EMV
ATF Electromagnetic compatibility
AMK Tool Flasher (PC software for transferring firmware to
device) E-encoder
Absolute encoder, singleturn, EnDAT 2.1 with additional sine
ASCII and cosine track
American Standard Code for Information Interchange
EF2
AIPEX Power output stage enable
AMK startup and parameterizing software (PC software):
Programming, parameterization, configuration, diagnosis, EF
oscilloscope, status information Power output stage enable
ADB EDS
AMK database - file in XML format with information about all Electronic data sheet
AMK parameters
E/A
actSync In- and outputs
Synchronous action of an asynchronous function block
EnDat 2.1
ACC Motor encoder interface protocol of the company Heidenhain
AMK CAN Communication (CAN bus interface with standard
CANopen protocol DS301 and additional hardware EtherCAT
synchronization signal) Real-time Ethernet bus
ID
F Parameter identification numbers acc. to SERCOS Standard
FSoE iC
Fail-Safe over EtherCAT AMKASMART decentralized inverter with power supply
FPLC_PRG iSA-PCO
Real-time PLC task, synchronized to device cycle PLCopen
FL
Command (Causes a new system run-up) K
Firmware KW-Rxx
System software, loaded by AMK AMKASYN controller card for installation into compact inverter
FIFO KU
First in - first out (Memory which outputs the saved values the AMKASYN compact converter
same sequence they were saved)
KEN
F-encoder AMKASYN compact power supply without recovery
Absolute encoder, multiturn, EnDAT 2.1 with additional sine and
cosine track KE/KW
Modular AMK drive system (contains compact power supply KE,
FB compact inverter KW with controller card and applicable option
Function block card)
KE
G AMKASYN compact power supply with recovery
g_yourDevice KWZ
Symbolic name of a device in a PLC project. The name is defined AMKASYN compact two-axes inverter to control two motors
in CoDeSys configuration: devices
KWD
AMKASYN compact double inverter to control two motors
H
HEX L
Hexadecimal, 0x...
LAN
Local Area Network
I
iSA-VIS M
Web visualization
MDB
iSA Motor database; it contains information about all AMK motor
AMKASMART decentralized controller with power supply parameters
I-encoder Modulo
Incremental encoder, optical encoder with sine and cosine track Modulo processing of position setpoint and actual values
and zero pulse
iSA-PNC N
Numerical Control Motion
NK
iX Cam switch
AMKASMART decentralized inverter
ihXT P
AMKASMART Servo motors with integrated inverter
PDO
Process Data Object
P-encoder SBUS
Absolute encoder singleturn, EnDAT 2.2 light AMK-specific protocol for serial interfaces
PGT SafePMT
Periphery basic clock Fetch cycle in the basic device to which the Safe parameter editor
drive controller is synchronized (The cycle time is according to
ID2) SBM
System ready message; shows that the device is error-free In
PLC_PRG case of error. SBM will be reset
Task which is not synchronized to the device cycle
POU T
Program organization unit (PLC program elements; types
program, function or function block) TwinCAT
Automation software
PRG
Program T-encoder
Absolute encoder, multiturn, RS485 Hiperface with sine and
cosine track
Q
QBR U
Acknowledgment motor holding brake
UE
Q-encoder Command 'DC bus on' control signal to load the DC bus e.g. in
Absolute encoder multiturn, EnDAT 2.2 light KE. DC bus on can only be set if the device is error-free (SBM =
TRUE). After the DC bus is loaded, the acknowledgement
QFL message QUE is set.
Acknowledgment clear error; the command clear error was
executed
QRF
Acknowledgment controller enable; the drive is controlled in the
activated operation mode
QUE
Acknowledgment DC bus on; shows that DC bus is loaded
R
RF
Command 'Controller enable'; the drive is energized and will be
controlled depending on the selected operation mode. Controller
enable can only be set if the device is error-free (SBM = TRUE)
and acknowledgement DC bus on is set (QUE =
TRUE).Acknowledgement controller enable (QRF) is set.
RO
Read Only
S
STO
Safe torque off (Safety function acc. to DIN EN 61800-5-2)
(1) very good (2) good (3) satisfactory (4) less than satisfactory (5) poor
(1) very good (2) good (3) moderate (4) hardly (5) not at all
(1) very easy (2) easy (3) moderately easy (4) difficult (5) extremely difficult
(1) very good (2) good (3) satisfactory (4) less than satisfactory (5) poor
AMKmotion GmbH + Co KG
Phone : +49 7021/50 05-0, fax: +49 7021/50 05-199
E-Mail: info@amk-motion.com
Homepage: www.amk-motion.com