Page 2
For further information regarding a particular installation, operation or maintenance of equipment, contact the manufacturer or your local representative or distributor. REVISION HISTORY Jan 2018 Initial release All trademarks are property of their respective owners February 2018 Copyright 2017-2018 SATEC Ltd.
Table of Contents 1 GENERAL......................5 2 IEC61131 IMPLEMENTATION ................6 Limitations..........................6 Data types..........................6 Built-in functions ........................7 2.3.1 AND ........................7 2.3.2 OR ........................7 2.3.3 NOT ........................7 2.3.4 GE........................8 2.3.5 EQ........................8 2.3.6 LE 8 2.3.7 GE_THRESHOLD ....................
Page 4
3.10.7 Creating LD ....................43 3.10.8 Transformation LD into setpoints ..............47 3.11 Using PLC Configurator with PAS ..................47 4 TROUBLESHOOTING ..................49 Address in not set ........................49 Connection error ........................49 No MAIN module .........................50 Unconnected inputs ......................51...
3 that deals with the languages used to program controllers. The document provides complete information necessary to use SATEC PM180 PLC Configurator (hereinafter referred to as PLC Configurator) in order to program the PM180 device using Functional block diagrams (FBD) and Ladder diagrams (LD) and to communicate with the device.
IEC61131 is the standard relating to programmable controllers. Part 3 of this standard deals with the languages used for programming these devices and is commonly referred as IEC61131-3. SATEC PM180 PLC Configurator implements IEC61131-3 in order to create logic for PM180 devices.
2.3 Built-in functions Functions are a type of Program Organization Unit. They are small reusable units that form the fundamental building blocks of complex industrial control programs. The implementation contains several built- in functions that are supported by PM180 devices. They are listed in the table below.
Figure 3 - NOT 2.3.4 GE GE function returns TRUE if input IN1 greater or equal to IN2. GE function is shown in the figure below. Figure 4 - GE 2.3.5 EQ EQ function returns TRUE if input IN1 equal to IN2. EQ function is shown in the figure below.
LE_THRESHOLD function is shown in the figure below. Figure 8 - LE_THRESHOLD 2.3.9 TON TON function is used for making time delays. TON function returns TRUE if input IN changes from FALSE to TRUE with the delay set via input PT. In this function IN is control input (BOOL), input PT is used for setting time delay in milliseconds.
2.5.1 Functional block diagram Function Block Diagram (FBD) is a programming language defined in IEC61131-3. FBD is a graphical representation of an Industrial programmed control system and adopts a set of symbols and conventions defined in IEC-1131-3. It represents a control system in terms of signal flow between processing elements similar to the methodology adopted for signal flow in electronic circuits.
Page 11
(AND logic). Alternative paths can be present with other contacts in them (in parallel), which can be used to build OR logic. An example of ladder diagram is shown in the figure below. Figure 12 - LD Basic concepts of LD implemented in PLC Configurator are the following: ...
Page 12
Figure 13 – Coil’s contact To create more complex logic it is possible to add built-in functions and variables of other from BOOL data types. Figure 14 - Using TON function in LD You can find detailed information about creating LD in PLC Configurator in chapter 3 .10.
2. In the application, choose File -> New Project, like shown in the figure below. Figure 15 - File menu 3. In the New Project wizard, expand the SATEC category and select SATEC PLC Project like shown in the figure below. Then click Next.
Page 14
Figure 16 - Project choosing 4. In the Name and Location page of the wizard, do the following (like shown in the figure below): In the Project Name field type project name. To setup project location click on Browse... button or type it in the Project location field.
Figure 18 - Created project Adding devices To add new devices do following: 1. Click the right mouse button on the existing project. Figure 19 - Add device menu 2. Select Device and Language in the “Add a new device” window and click Ok.
FBD (Function Block Diagram). LD (Ladder Diagram). Figure 20 - Device properties After that you will see a newly created device in the project tree. Figure 21 - Created device in the project 3.4 Device properties To open device properties double-click on a device in the project tree. The properties will appear in the middle of the screen: Figure 22 - Device properties You can set the following settings:...
2. “Settings range for the logic generator” – here you can set the range of set points that will be used on the PM180 device, during automatic logic generation. For detailed information see 3 .11. 3.5 Main function block A newly created device contains one function block named MAIN.
3.7 Setting function blocks 3.7.1 Rename FB To rename FB click the right mouse button on FB in the project tree and choose “Rename”. Figure 25 - Rename FB Type the new name in appeared window like shown in the figure below and click OK.
3.7.2 Add variables To add variables click the right mouse button on one of the following sections depending on the type of variable you want to add: 1. Input variables. 2. Output variables. 3. Local variables. Context menu will appear like shown in the figure below: Figure 27 - Adding variables In the menu choose the desired type of variable and click on it with the left mouse button.
Page 20
Figure 28 - Variable properties You can set properties using Properties component. There are following properties: 1. Name – name of a variable. 2. Type – type of a variable. Cannot be changed. 3. Initial value – a value that variable has before it is changed due to signal flow.
Page 22
Figure 30 - Output variable mapping For input variables set an internal device signal that will be a source of input variable (digital input, relay output, event flag, etc.). For output signal set an action that will be accomplish when the input has the proper value.
grey color and unavailable for choosing like shown in the figure below. Variable’s type is shown in the Properties window. Figure 31 - Variables with unsupported types The chosen internal variable will appear in the Address setting. You can rename or delete properties using its context menu. Figure 32 - Variable context menu 3.7.4 Add work area To add additional work area click on FB with the right mouse button and...
Figure 33 - Debugger You can set input or local variables by clicking on them with the left mouse button. When you press button, output values will appear on the lines corresponding to output variables like shown in the figure below. Figure 34 - Debug result 3.7.6 Delete FB To delete FB click on FB with the right mouse button and choose Delete...
Page 25
2. To connect via Serial port you need to use serial communication port COM1 with cable suited for RS232/485. 3. Ethernet connection...
Ethernet connection option is provided by one 10/100TX Ethernet communication port on the CPU module. Use RJ45 Cable with "Straight Through" wiring. 3.8.2 Upload configuration to the device Before you start, need to create a new project or open the existing one. In addition, your project must contain at least one device and you PC must be connected to the PM180 device by any of interfaces.
Page 27
Figure 35 - Context menu 2. After that you will see the upload page. Figure 36 – Internet site settings There are 3 types of communication interfaces. 1. Internet site To upload using TCP/IP you have to select Internet site radio button type address...
Page 28
2. Serial Port To upload via Serial port you need to select Serial port radio button and set properties to meet the serial port settings of the PM810 device. Figure 37 – Serial port settings 3. USB port To upload via USB port you need to select USB port radio button and type in “Slave ID”...
Figure 39 - Building log In case of successful uploading you will see “Loading complete” message in the right bottom corner of the application. 3.8.3 Download configuration from the device Before you start, you need to create a new project or open the existing one.
Page 30
Figure 41 - Internet page There are three types of communication interfaces. 1. Internet site To download via TCP/IP you need to select Internet site radio button type address like this: IP address:Port Also you have to know a Slave ID of your destination device. 2.
Page 31
Figure 42 - Serial port 3. USB port To download via USB port you need to select USB port radio button and type in “Slave ID” of the PM180 device. Figure 43 - USB port After that you will see the log page:...
Figure 44 - Log page In case of successful downloading you will see “Loading complete” in the right bottom corner of the application. Be advised that the graphical form of the algorithm reconstructed from the device setpoints reflect the logic of the algorithm, however the visual display representation may be different from the original one.
Figure 45 - Workspace 3.9.2 Add or delete variables Before you start to add variables on the workspace, you should add them to the FB. To do that, see 3 .7.2. To add variable, just drag and drop it to the workspace. In case of local variable you will get a menu where you need to choose its type (input, output or input/output variable) like shown in the figure below.
Figure 47 Workspace with variables To delete variable click on it with the right mouse button and choose “Delete”. 3.9.3 Variable properties If you click on a variable that has been added to the workspace, its properties will appear in the Properties window. They consist of two parts, like shown in the figure below: ...
Figure 48 – Built-in components After that, components will appear on the workspace. Figure 49 - Workspace with functions 3.9.5 Making connections Variables and functions have pins – circles that are used for making connections. Red pins are not connected, green pins are connected. Input pins are placed on the left side an element, output pins are placed on the right side.
Page 36
Figure 50 - Connections If a connection is made the pin will change its color to green and pins will be linked with an arrow. Please note that some inputs can be multiple (for example in AND, OR functions). You can connect unlimited number of inputs there. Please note that the type of a variable and an input you want to connect with must be compatible.
Figure 52 - Disconnect link After making connections FBD is ready to be uploaded to the device. Just check that you have set addresses for all variables (see 3 .7.3) and you can proceed to uploading the configuration to the PM180 device (see 3 .8.2).
Figure 54 - Time delays in PAS 3.9.7 Programming limits for set point variables There are two standard functions in IEC 61131 that are used for analog values comparisons: GE and LE. For detailed information about them 2 .3.4 and 2 .3.6.
Page 39
Figure 55 - Comparisons Limits (particularly release coefficients) aren’t supposed to be used with these functions. However the PM180 device claims setting these parameters. To do that, there is a “Release coefficient in comparison operations” property that you can set via Device properties (see 3 .4).
Page 40
Figure 56 – Using GE_THRESHOLD In this case limits are set using local variables L01 and L02, IN05 is a value input. In the figure below you can see the result setpoint in PAS. Figure 57 - Setpoint with limits...
3.10 Ladder diagrams See chapter 2 .5.2 of this document to get basic information about implementation of ladder diagrams in PLC Configurator. Basic concepts are similar to creating FBD. We suggest you to read chapter 3 .9 first, then proceed to this chapter. ...
3.10.2 Rails There are two power rails: left rail and right rail. Left rail can be attached to any of variables excluding output variables and to any kind of coils. Right rail can be attached only to any kind of coils. Multiple connections are allowed.
Figure 62 - Negated contact 3.10.5 Coil Coil represents a normally inactive coil, energized whenever its rung is closed. (Inactive at rest) It has 2 pins: Input pin (left pin) - can be attached to contact, negated contact, built-in function block, input variable, input-output variable. ...
Page 44
Figure 65 - Add contact On the appeared menu choose type of the contact, for example “Normally opened contact”. Figure 66 – A contact on LD A contact will be added to a ladder diagram and it will be assigned to the variable you chose.
Page 45
Figure 67 - A contact and a coil on LD Now let’s connect the elements. To do that, you need to click on the right pin of any element and drag an arrow from the pin. Figure 68 - Making connections Then, drag the arrow to any valid pin, for example, left coil pin.
Page 46
Figure 69 - Connection made Let’s finish our rung by connecting other elements. Figure 70 - A complete rung Now you can see that when you add more links between rails, the quantity of pins is being incremented. You are able to make as many rungs as you like.
After that your ladder diagram is ready to be uploaded to the device. To do that, see 3 .8.2. 3.10.8 Transformation LD into setpoints After uploading you can check the uploaded setpoints in PAS. In the figure below you can see how a ladder diagram transforms in setpoints that the PM180 device can use.
Page 48
To create logic on the PM180 devices you can you use PLC Configurator together with PAS. Some set points can be set via PLC Configurator and some of them can be set via PAS. PLC Configurator has a special logic generator which automatically distributes logic among set points in accordance with a special property “Settings range for the logic generator”...
4 Troubleshooting 4.1 Address in not set If you linked a variable on a diagram but didn’t set its address you will get a message like in the figure below. Figure 73 - Unknown address In this case you need to set variables address. To do that, see 3 .7.3.
Figure 74 - Connection error To fix this you need to press Return and check the communication interface and connection settings. You can get proper settings by connecting to the device using PAS software. 4.3 No MAIN module “No MAIN module” error appears during building project before uploading configuration to the device (when you use function “Send configuration to the device”).
In this case you should rename one of the function blocks that are in the device project or add new function block and set name “MAIN” to it. 4.4 Unconnected inputs If you get a message like in the figure below, you should check your FBD for unconnected pins (they are marked as red circles).
Need help?
Do you have a question about the Expertmeter PM180 and is the answer not in the manual?
Questions and answers