HMI Droid manual in English    HMI Droid manual på svenska    HMI Droid manuale in italiano   
Get it on Google Play           Available at Amazon           Download on the App Store

Contents

HMI Droid (Odrid HMI) - The app
HMI Droid Studio - The development tool
appendices


Workspace

When creating new panels (pages) you must first find out how large the panel should be. Use the command Workspace in the menu in HMI Droid (Odrid HMI) to find out the size of the workspace on your target device.

HMI Droid - Workspace

     Odrid HMI - Workspace
The workspace is slightly smaller than the entire screen because the program's Action Bar will use a portion of the surface. Moreover, the device's system bars will use some space at top and/or bottom of the screen. On a 10.1 inch tablet the workspace can therefore be eg 1280 x 696 dp in landscape and on a phone the workspace can be eg 320 x 496 dp in portrait.

Note: Version 1.6.2 and later of HMI Droid (Android) has support for hiding the Action Bar and System Bar providing larger workspaces.

Before there are any panels in the device the workspace has no given orientation. You can therefore find out the size of the workspace in both portrait and landscape.

The orientation is determined by how you set the width and height and is always locked to either portrait or landscape. If you enter a width greater than the height the orientation will be landscape. If you enter a height greater than the width the orientation will be portrait.

HMI Android Droid workspace tablet smart phone smartphone

Sample sizes of workspaces

Type      Brand/model      Screen      Landscape      Portrait     
Media player      MiniX Neo X5      1280 x 720 px      1280 x 664 dp      720 x 1224 dp     
11.6" Chromebook      Acer R11 (fullscreen)      1366 x 768 px      1366 x 633 dp      N/A     
11.6" Chromebook      Acer R11 (window mode)      1366 x 768 px      960 x 512 dp      600 x 633 dp     
10" tablet      Samsung GT-P7500      1280 x 800 px      1280 x 696 dp      800 x 1176 dp     
10" tablet      iPad      1024 x 768 px      1024 x 704 dp      768 x 960 dp     
8" tablet      Samsung Galaxy Tab Active      1280 x 800 px      961 x 519 dp      600 x 879 dp     
7" tablet      Samsung SM-T211      600 x 1024 px      1024 x 519 dp      600 x 943 dp     
5" phone      Sony Ericsson XPERIA LT18i      480 x 854 px      569 x 246 dp      320 x 496 dp     
5" phone      LG Nexus 5      1080 x 1920 px      598 x 295 dp      360 x 519 dp     
5" phone      Sony Z2      1080 x 1920 px      640 x 319 dp      360 x 519 dp     
5" phone      iPhone 5      640 x 1136 px      568 x 256 dp      320 x 504 dp     
4" phone      Smart-Ex® 01      480 x 800 px      696 x 246 dp      320 x 800 dp     
3.5" phone      iPhone 4      640 x 960 px      480 x 256 dp      320 x 416 dp     


Configure HMI Droid

Use the command Settings in the menu to configure HMI Droid. Specify the type of link to use, IP or MAC address, port number, communication protocol and e.g. Modbus Id.

These parameters can also be specified per panel (page) in the communication parameters dialog in HMI Droid Studio and in that case will override the values specified in the Android or iOS device.

The settings are divided into the following categories.
Note: To access the settings on an iOS-device, press the Home button, then press the Settings icon, scroll down the list and select Odrid HMI.


Connection settings

HMI Droid connection Select link for the connection. Possible choices are Wi-Fi and Bluetooth. ( Wi-Fi Direct will be introduced later. )

IP address. Enter the controller's IP address or host name on Wi-Fi or (mobile) internet.

Port. Enter the controller's port number on TCP/IP or UDP over Wi-Fi or (mobile) internet.

MAC address. Enter the controller's MAC address on Bluetooth. The hexadecimal MAC address must be in all caps. Bytes must be separated by a colon.

Use the SPP. Ticked if SPP ( Serial Port Profile ) shall be used for Bluetooth.

Maintain connection. Select this option if the connection to remain connected even when HMI Droid is not visible on the screen.

Settings for controller

HMI Droid controller Select the protocol. Alternatives are COMLI, Modbus/TCP, Modbus/TCP Class 1, Modbus RTU Class 1, SattBus COMLI, Siemens Fetch/Write and Simens S7 Communication (ISO on TCP).

A slave-identity between 1 and 247 must be specified if COMLI, Modbus/TCP or Modbus RTU is used.

Default data block specifies which data block to use when Siemens Fetch/Write if the data block is not entered for each object.

Life bit. Activate life bit if the controller shall monitor that the communication between Droid HMI and controller works.

Address for control word specified as octal bit addresses to 16-bit control word.

32-bit register must be selected if HMI Droid is used with RievTech/xLogic PLCs.

Select Word Swap for systems using "reversed" word order for 32 bit variables with the Modbus protocol.

Poll interval is the minimum time between two polls and can be set to save battery and network traffic.

Response timeout in ms. Used by the Modbus protocols. Default value is 3000.

Rack for Siemens S7 controllers. Default value is 0.

Slot for Siemens S7 controllers. Default value is 2.

Modbus max block size is the maximum number of Modbus registers that will be read using one request message. Default value is 55.


Settings for display

Center. Tick to center the panel in the workspace. This can be used if you want to use a panel that is made for the width 320 dp on a phone with a work at a slightly greater width, e.g. 360 dp.

Scale. Tick to scale the panel to make it fit into the workspace. this can be used if you wish to use a panel that is made for the width 320 dp on a phone and run it on a tablet or vice versa.

Center and scale can be used together or separately.

Changes to these settings will not be visible until you either restart the HMI Droid or scroll multiple pages.

If scaling and/or centering is used, the device must held in the "right direction" when the app is started for it to work properly.

Full screen ( From version 1.6.2 ) Make the workspace larger by hiding both the Status Bar and the Action Bar. If the device does not have a menu button the menu kan be opened by pressing an empty area in the panel for 3 seconds.

Hide Action Bar ( From version 1.6.2 ) Make the workspace larger by hiding just the Action Bar. If the device does not have a menu button the menu kan be opened by pressing an empty area in the panel for 3 seconds.

The app must be restarted after changing Full Screen or Hide Action Bar when scaling or centering is used.


Settings for Security

You can protect the settings against accidental or unauthorized modification by requiring a password must be entered to access them.

Note: This feature is not available in the iOS version of the app.


Settings för accessibility

You can turn off the scrolling between different panels using swipe if you only want to be able to navigate by pressing Buttons.


About

Displays version information.

About HMI Droid


Panel information

The command Panel information shows different properties for the current panel (page) file.

Stamp refers to the date and time when the panel file was last saved in HMI Droid Studio. This feature can be used to verify that the correct version of the file is installed in the Android or iOS-device. Use the Information command in the File menu in HMI Droid Studio to show the stamp and compare with the stamp in the target device.

NOTE: The stamp information is available in panel files edited with HMI Droid Studio V6.7.4 or later.

HMI Droid Panel Information          Odrid HMI Panel Information

Communication diagnostics

The command Diagnostics displays the current and most important communication parameters in a dialog.

NOTE: In Odrid HMI (iOS) with version lower than V1.0.20, the dialog displays the initial value of Slave Id for the current panel and is not affected when writing to system variable System.R64518 to change the value.

NOTE: The Poll interval parameter is displayed as "0 ms" until a connection is established with the controller.

HMI Droid Modbus/TCP HMI Droid Communication Diagnotics      HMI Droid
The example panel in the screenshots above is available for download.

172 mb tcp 360.led

Download the file and open it in HMI Droid Studio.
Modify the IP-address in the communication parameters settings to match your PLC/controller.
Use the Test run feature or transfer the file to the Android-device.
This panel (page) is 360 dp wide. On some devices the panel scaling feature therefore must be enabled to fit the workspace.


Windows version

The Windows version of HMI Droid, currently in alpha state, can be downloaded free of charge by users who have purchased the Android or the iOS version of the app. Please contact us for more info.

HMI Droid for Windows

Prerequisites and limitations:
  • All panels (page) files, images and text lists must be stored in the folder "C:\Users\Public\Documents\HMI Droid\".
  • All settings for communication must be stored in the panels (pages).
  • Navigation between panels (pages) can only be done with Buttons or Links.
  • Images does not support transparency.


Create and edit panels

The panels (pages) to be used in HMI Droid are created and edited using the HMI Droid Studio. This program runs on Windows PC and each panel is saved as a separate file. This file is then transferred to the folder /Android/data/se.ideautomation.hmidroid/files. The folder is created automatically the first time you run HMI Droid.

Any images and text files used to display a variable as a text should also be placed in this folder.

Since there is not always a file explorer in an Android device, HMI Droid contains the command Import that can be used to copy the files to the correct folder. When you import, you can choose between panels, images and textlists.

NOTE: On some devices and when using app versions before V 1.7.5.78, the Import command can cause a ANR (App Not Responding) error.

On iOS-devices you have to use the "Open in..." or "Copy to..." feature to transfer the files to the /Documents folder.

NOTE: Version 1.0.17 of Odrid HMI has support for iTunes file sharing that can be used to transfer the files to the iOS device. After transferring the files, Odrid HMI has to be restarted to reload the panels (pages).


Download HMI Droid Studio

Download HMI Droid Studio. This software does not require installation and can be run directly after you extract the zip file. It is basically the same tool that is used to build panels for the HMI program LEDpanel for Windows.



Using the HMI Droid Studio

When starting the HMI Droid Studio a blank panel (page) is displayed. Use the Panel size command in the Format menu to make the panel (page) the same size as the workspace on your target device. If the size of the panel (page) does not match the workspace, the panel (page) will either be cropped or not fill the entire workspace when displayed on the device unless scaling is enabled.

Save the first panel as start.led which is the name of the panel (page) to be displayed when starting the HMI Droid.

HMI Droid Studio - Panel size

If you will have many panels (pages) it may be advisable to put some buttons for navigation, especially in the first panel, so you do not have to browse so far.


Naming panels

The panel (page) that is displayed when HMI Droid is launched should be named start.led. The other panels can in principle be named anything but the file name should consist of small characters and the extension must be .led. The name must be a valid file name in both Windows and Android or iOS. If you will navigate from one panel to another panel by using the buttons you have to limit the length of the filename to a maximum of eight characters. This is a legacy of LEDpanel and Windows 3.1 and will changed later on.

When saving a panel, a backup of the old file is created with the same name but with .~le as file extension.

HMI Droid shows the panel start at the left and all other panels sorted alphabetically to the right of this panel. If you see ">>" after panel name in the app action bar it means that you can scroll to the right. If not the ">>" is appearing you are on the last panel.

HMI Android Droid app phone tablet        hmi iOS iPhone iPad



Background

Filename for background image must not contain a file path.

Store the image files that will be used in the same directory on the PC as the panel files. Always save the panel on the PC in this directory before selecting an image filename. This will make HMI Droid Studio to automatically remove the path from the image filename.

From version 1.6.4 the background color of the panel (page) can be choosen. The color value is RGB, but in the reverse byte order. Enter FFFFFF for white.

Note: The current version of HMI Droid Studio does not support alpha channel (transparency) in images. For best result, use images with the same background color as the panel (page).

HMI Droid Studio - Background dialog box

NOTE: See FAQ for decription of how to transfer an image to an iOS-device.


Panel properties

In the dialog panel properties, you can specify whether to return to the start panel after a period of inactivity.

Dialog panel properties HMI Droid


Grid

The Grid is a pattern of dots that covers the panel (page) in the development tool. Objects can be snapped to the grid when moved or resized.

The settings for x and y are also used to control the number of pixels (dp) that the objects move if you hold down the Shift key when moving selected objects with the cursor keys.

The choosen color for the grid will be used for the object handles too.

HMI Droid Studio - Grid example


Objects

The panels (pages) in HMI Droid are built up with different types of objects. A panel (page) may also contain a background image.
The objects must not overlap, it is not possible to place e.g. a LED on top of a button.


Light emitting diode (LED)

LEDs can be used to view the status of logical variables. The variables are automatically retrieved from the selected variable area the controller/PLC.

Bit address for the variables can be defined in different ways depending on which communication protocol that is used. For COMLI octal address is used. To interface with e.g. Siemens systems you can also enter the address in the format "byte number dot bit" for example, DBnn.DBX12.3, or "register number colon bit" for systems using Modbus/TCP or Modbus RTU. Selection of address format is done with a command in the Format menu.

LEDs are available in two sizes, 12x12 and 16x16 dp.

HMI Droid Studio hmi android hmi ios

Property Description
Variable area The variable area which the LED will read variables from.
Data block number The data block between 1 and 255 the LED will read from when using the Siemens S7 Communication (ISO-on-TCP) protocol.
Animation How the LED should work. If the specified variable for a certain color is true, the LED will shine with that color. If multiple conditions are met, the one with the highest priority will "win".
Bit address The bit address of a variable in the selected address format.
Invert Inverts the signal so that the LED illuminates if the signal is low.
Priority Precedence for the colors of multiple variables are used.
Address format Displays the address format which you have chosen to use. It has to correlate with the type of controller that you should connect to.
Show as rectangle Displaying a rectangle instead of a round LED.
Use any size Use any size and not just the 12x12 and 16x16 dp sizes e.g. for Andon systems with requirements for readability at a long distance.
Hide ( Not implemented presently. )
Comment Here you can write a comment.


Text/Label

Texts/Labels are typically used together with LEDs, Numeric variables, Input fields, Sliders, Bar indicators or Line charts.

HMI Droid Studio - text objects example HMI Android Droid text objects labels HMI Droid for iOS - text objects labels

Property Description
Text The fixed text to be displayed (max. one line)
Alignment Choose between left, center and right. The text maintains its position if the length or font change.
Fit width and height Text object's size is automatically adapted to the length of the text and the selected font.
Fonts are not identical in Windows, Android and iOS. If the object is cropped or truncated on the target device you should uncheck the "Fit width and height option" and manually increase the size of the object.
Hide (Not implemented presently.)
Link Name of a panel (page) without extension or a web address that will open when you touch the text. A web address has to begin with either http:// or https:// eg http://www.ideautomation.se and will open in the default browser. Links are displayed with blue underlined text.

Some values for Link can be used for relative navigation between panels (pages).

Link   Nagivate to   Comment
|<<    First panel  
<<    "Fast rewind"   10 pages
|<    Previous panel  
>|    Next panel  
>>    "Fast forward"   10 pages
>>|    Last panel  

The link feature is available in HMI Droid V1.7.4 and later.



Button

Buttons can be used to manipulate variables and to navigate between different panels (pages).

For a button to work well on a phone or tablet, it must not be too small, but should be at least 48 x 48 dp large including any gaps. 48 dp represents about 10 buttons vertically in portrait on a phone with a 5 inch screen.

HMI Droid Studio - Button dialog hmi android droid ios buttons phone smartphone hmi android droid ios buttons phone smartphone

Property Description
Text Text to display on the button.
Multi line text The text should appear on multiple lines. Hard line breaks normally works better than word wrapping.
Variable area Variable area in the controller that is used when the button control variables and for optional animation of the button.
Data block number Data block between 1 and 255 that will be used if the variable area is type data block.
Action What should happen when you press the button. Choose from the following actions.

Change panel Navigate to another panel (page).
Reset SR flag Reset a boolean variable.
Set register Write a constant value to a 16-bit integer variable.
Set flag (momentary) Set a boolean variable on press, reset the variable on release.
Set SR flag Set a boolean variable.
Toggle flag Toggle a boolean variable.
Open options menu         To be used in fullscreen mode. Available in version 1.7.6 

Other actions have presently no function in HMI Droid.
Choose... Select the file name for the action "change panel".
Lighted pushbutton Check if the button should be a lighted pushbutton i.e. if the button should illuminate when the selected condition for the animation is true.
Animation Open the dialog for configuring animation.
Image button Use images to draw the buttons different states (Normal, Pressed) instead of using a native button. This feature is available in HMI Droid 1.7.4 or later.
Setup Open the dialog for configuring the image button.
Function key Indicate whether the button should be activated with a function key. This feature is not available in the Android and iOS versions of HMI Droid.
Password Enter any password for the action "Change panel". If a panel contains buttons for navigation that is protected with a password, you can not navigate away from this panel by using a swipe gesture.
Hide Hide the button. (Not implemented).
Comment Here you can write a comment.


Bit addresses for boolean variables can be entered in different ways. Use the address format command in the Format menu to choose the correct format.


Animation of lighted pushbutton

A button can be animated so it mimics a lighted pushbutton and illuminates with a certain color when a condition is true.

HMI Droid Studio - Lighted pushbutton

Property Description
Color The color that the button should show when the boolean condition is true.
Bit-address Bit-address for the boolean variable. The same variable area and datablock number are used as for the Button action.
Invert Inverts the signal so that the button illuminates if the signal is low.
Background color Color that the button will show when the boolean condition is false.

More colors ( black, blue, cyan, gray, green, lime, magenta, maroon, navy, olive, purple, red, silver, teal, white and yellow ) will be added in the next major release of HMI Droid Studio.


Image button setup

HMi Droid Stuido - Image Button Setup HMI Droid Image Button HMI Droid Image Button


Select the files to be used for displaying the Normal and Pressed state of the button.

Files must be stored in the same directory as the panel-file.

The images will be scaled to fit the button.

Note: The current version of HMI Droid Studio does not support alpha channel (transparency) in images. On some Android devices, a small rectangle will be drawn inside the image button before the image is drawn. For best result, use images with the same background color as the panel (page).

The example panel in the screenshots above is available for download.

174 img btn.led
blue_round_81_81_normal.png
blue_round_81_81_pressed.png

Download the files and open the *.led file in HMI Droid Studio.
Modify the IP-address in the communication parameters settings to match your PLC/controller.
Use the Test run feature or transfer the files to the Android or iOS-device.



Numeric variable (variable field)

Numeric variables (variable fields) are read from the selected variable area and displayed in the way you specify in the object's configuration dialog.

If you check the box "Allow change" you can change the value online. Tap and hold the numeric variable (variable field) to open the change value dialog.

In order to tap a numeric variable (variable field), it should be at least 48 dp high. The size is controlled by the font, a font size of at least 20 points is recommended.

HMI Droid Studio - Numeric variable dialog      HMI Droid variables

Property Description
Variable area Variable area to read from.
Datablock / Object id (in) Enter the number of the datablock if the selected variable area is Datablock. ( Object id if the variable area is Objects. )
Address / value Address of the variable. Address is normally entered in decimal. In some controllers, such as Siemens S7, byte addressing is used. ( Value when using area 'Const' )
Double register Specifies that the variable is a 32-bit variable instead of 16-bit.
Format Controls how the variable is displayed.
  • Unsigned
  • Signed
  • Hexadecimal
  • Float (IEEE 754 32-bit single precision floating point number)
  • Use PHYS ( Simple scaling )
  • Unsigned fixed point decimal ( Available in version 1.7.7.xx )
  • Signed fixed point decimal ( Available in version 1.7.7.xx )
  • ASCII ( Do not use with the "Double register" option enabled )
  • As text ( Unsigned integers mapped to text using simple Text list .)
  • STRING (For Modbus, Siemens Fetch/Write and Siemens S7 (ISO-on-TCP) protocols. When using S7 is the maximum length in the first byte, the current length in the second byte. Then follows the characters the string consists of. Modbus uses null-terminated strings and two ASCII-charaters in each register.)
  • TIME_OF_DAY ( Siemens S7 )
  • Unix time ( Available in version 1.7.7.xx )
Settings... Setup number formatting for hexadecimal and floating point numbers or configure the PHYS format.
Source Name of the text file containing values and the texts to display for each value at the the format As text. Each line should begin with an unsigned decimal value followed by a space and then the text to be displayed. The maximum length of the text is currently 80 characters. The text file must be a plain text file that you create with e.g. Notepad. If the text file is edited, the panel (page) has to be closed and reopened to load the new content.
Default Text to be displayed if there is no text available for a certain value.
Allow change Allows the variable is changed from the panel. It's only if you have ticked this box that the dialog Change value will contain a button for OK.
Fit width and height Adjusts the size of the object to the current format and the selected font size. For the format As Text, however, the width is always adjusted manually.
Fonts are not identical in Windows, Android and iOS. If the object is cropped or truncated on the target device you should uncheck the "Fit width and height option" and manually increase the size of the object.
Password field Replaces the variable value with '****' when displayed. Feature can be used for creating login screens.
Object id (out) The object id to be used when accessing this object from other objects. The output data is the displayed value for the integer and PHYS formats and is read at address 0.

The high and low bytes of the value for the integer formats can be read at address 16 and 17. ( Feature available in version 6.7.5.42 / 1.7.5.74 / 1.0.9 )
Display in input dialog Specify the items to be displayed in the change value dialog.
  • Variable designation
  • Variable type
  • Comment
Comment Optional comment for the numeric variable. Text that is entered here can be viewed, along with the variable name, in the dialog used for changing the value of the variable.



Input field

The object input field is similar to the object numeric variable.

dialog input field HMI Droid        HMI Droid Android input dialog phone tablet
Property Description
Variable area Variable area in the controller that the input value should end up in.
  • Default - Variable is mapped to the default area according to the selected communication protocol.
  • I - Variable is mapped to input words.
  • Data block - Variable is mapped on a data block.
  • M - Variable is mapped to memory words.
  • Register - Variable is mapped on a register.
  • Q - variable is mapped to output words.
Address Address of the variable.
Data block Number of the data block to be used if the variable area is data block.
Double register Specifies that the variable is a 32-bit variable instead of 16-bit.
Format In what format the numeric variable will be displayed and how the entered value should be interpreted.
  • Unsigned
  • Signed
  • Hexadecimal
  • Float ( only when double register/double word )
  • Use PHYS
Hide ( Not implemented presently ).
Show in the input dialog Specify what should be displayed in the dialog that is used to enter a value.
  • Variable designation
  • Variable type
  • Comment
Comment Write an optional comment for the entry field. Text entered here can be shown ( along with the variable name and format ) in the dialog used to enter a value.



Image

The object image is used to display one or more images which is smaller than the entire workspace. If you want a picture fills entire workspace, you should use the background image instead. In both cases, the image shall be in png format and file name must be specified without path and be exactly the same as for file with respect to uppercase/lowercase characters. Windows makes no difference in the file names IMAGE.PNG and image.png but in Android and iOS it is the names of two different files.

Store the image files that will be used in the same directory on the PC as the panel files. Always save the panel on the PC in this directory before selecting an image filename. This will make HMI Droid Studio to automatically remove the path from the image filename.

Note: The current version of HMI Droid Studio does not support alpha channel (transparency) in images. For best result, use images with the same background color as the panel (page).

HMI Droid Studio - Image dialog


Slider Bar

A Slider Bar is used to change a numeric variable. The change is made in the controller when you let go. A Slider Bar displays the value of the variable in the controller dynamically except just when you pull it.

HMI Droid Studio - Slider example      HMI Droid - Slider example      HMI Droid for iOS - Slider example

In the dialog for configuring a Slider Bar, select the variable area and enter the variable address and desired range.

Minimum and maximum values specified between 0 and 65535 for unsigned and between -32768 and 32767 when signed.

Max must be greater than min.

Dead zone helps finding a zero value that is not in an end position.

Currently only 16 bit integer values are supported but 32 bit integer and floats will be implemented in the next major update.

The example panel (page) in the screenshot above is available for download.

slider.led

Download the file and open it in HMI Droid Studio.
Modify the IP-address in the communication parameters settings to match your PLC/controller.
Use the Test run feature or transfer the file to the Android or iOS-device.
This panel (page) is 320 dp wide. On some devices the panel scaling feature therefore must be enabled to fit the workspace.


Bar Indicator

The Bar Indicator is used to display the value of a numeric variable using a horizontal or vertical bar.

hmi droid studio bar indicator      hmi droid bar indicator      hmi droid ios bar indicator

In the dialog for configuring a bar indicator you specify eg variable area and variable address as well as desired range.

Minimum and maximum values specified between 0 and 65535 for unsigned and between -32768 and 32767 when signed.

Max must be greater than min.

Hex codes for colors are in reverse (BGR) order, example:

FF0000    Blue
00FF00    Green
0000FF    Red
FFFF00    Cyan
00FFFF    Yellow
FF00FF    Magenta

Currently only 16 bit integer values are supported but 32 bit integer and floats will be implemented in the next major update.


Chart / Line Graph

Line Graphs can be used to show a number of numeric values as a curve. The function can used eg to display trend graphs. The numeric values have to be in order and you specify the address of the first value.

HMI Droid Studio - Line Graph Example HMI Droid - Line Graph Example HMI Droid for iOS

In the dialog for configuring a line chart you can specify, among other things variable area and variable address as well as desired range.

Minimum and maximum values specified between 0 and 65535 for unsigned and between -32768 and 32767 when signed.

Max must be greater than min.

Currently only 16 bit integer values are supported but 32 bit integer and floats will be implemented later.

The line graph can calculate the minimum, maximum, mean, standard deviation, coefficient of variation and difference between maximum and minimum. These values can be accessed for viewing via the local variable area. You reach these values by adding the local base address and index in the table below.

Index      Function      Format
0 Number of values within the range. Unsigned
20 The minimum value of all values within the range. Same as data
22 The maximum value of all values within the range. Same as data
24 The span, ie the highest value minus the lowest value. Same as data ( Unsigned from V1.6 )
26 The average of all values within the interval. Same as data
30 Standard deviation. Unsigned
36 Coefficient of variation in % x 0.01 ie 1000 corresponds to 10.00%.      Same as data ( Unsigned from V1.6 )
999 Last reserved variable address.



Checkbox

With the checkbox is it easy to view and manipulate boolean variables.

HMI Droid checkbox dialog      HMI android checkbox telefon smartphone tablet droid surfplatta plc modbus tcp Wi-Fi Bluetooth HMI android checkbox telefon smartphone tablet droid surfplatta plc modbus tcp Wi-Fi Bluetooth

( iOS does not include native radio buttons and checkboxes. )


Radio button

With the radio button it is easy to view and manipulate numeric variables of integer type.

The radio buttons that uses the same variable will form a group.

Buttons in a group must use unique values e.g. 1, 2, 3 etc.

HMI Droid Studio Radio button example      HMI android radioknapp telefon smartphone tablet droid surfplatta plc modbus tcp Wi-Fi Bluetooth HMI ios radiobutton phone tablet tablet plc modbus tcp Wi-Fi Bluetooth

( iOS does not include native radio buttons and checkboxes. )


ST Program Block ( Implementation in progress. )

A ST ( Structured Text ) Program Block contains program code that will execute in the panel context.

The ST program block in HMI Droid V2.0 implements a subset of the IEC 61131-3 Structured Text programming language and can access variables in the controller/plc as well as the local and system variables areas in HMI Droid.

All variables referenced by the ST program code will be automatically polled from the PLC/controller in the same way as any variables used by other objects such as LEDs, numeric variables and bar indicators.

The ST Program Blocks are hidden in the HMI Droid but visible in the HMI Droid Studio.

The lightning fast compiler will be integrated in the HMI Droid Studio and the compiled HMI Droid Structured Text program is stored in the *.led files. The HMI Droid Structured Text source code is stored in files with extension .hmidst and can be edited using any text editor including Notepad.

It will also be possible to test run the ST Program Blocks in HMI Droid Studio using the test panel feature.

Arithmetic operators:

Operator name    Syntax
Additiona + b
Subtractiona - b
Unary plus+a
Unary minus-a
Multiplicationa * b
Divisiona / b
Moduloa mod b

Relational operators:

Operator name    Syntax
Equal toa = b
Not equal toa <> b
Greater thana > b
Less thana < b
Greater than or equal to    a >= b
Less than or equal toa <= b

Bitwise operators:

Operator name    Syntax
Logic notNOT a
Bitwise ora OR b
Bitwise anda AND b
Bitwise xora XOR b

Logic operators:

Operator name    Syntax
Logic notNOT a
Logic anda AND b ( a & b )
Logic ora OR b
Logic xora XOR b

Data types

The following datatypes will be supported initially.

BOOL    Boolean variable.
INT    16 bit signed variable.
DINT    32 bit signed variable.
WORD    16 bit unsigned variable.
DWORD    32 bit unsigned variable.
REAL    32 bit floating point variable.

Functions

The following functions will be included initially.

Function        Return value
abs(x)      Absolute value of x.
acos(x)      Arc cosine value of x.
asin(x)      Arc sine value of x.
atan(x)      Arc tangent value of x.
cos(x)      Cosine value of x.
exp(x)      The exponent of X, i.e. the number e to the power x.
log(x)      Logarithm base 10 of x.
ln(x)      Natural logaritm of x.
round(x)      The closest integer, which may be bigger or smaller than x.
sign(x)      Sign of x as -1, 0 or 1.
sin(x)      Sine value of x.
sqrt(x)      Square root of x.
tan(x)      Tangent for x.
toReal(x)      X with type converted to REAL.
trunc(x)      Integer part for x.


Some preliminary code examples:

Variable declarations

//
// Variables in the plcs/controllers
//
VAR_GLOBAL
    errorCode AT plc0.register.r200 : WORD;
    errorFlag AT plc0.register.r202:1 : BOOL;
END_VAR

//
// Variables in the local variable area
//
VAR_LOCAL
    start AT local.R400:4: BOOL;
END_VAR

//
// Private variables
//
VAR_PRIVATE
    temp: INT;
END_VAR

//
// Typed constants
//
CONST
    pi: REAL = 3.14159;
    the_answer: INT = 42;
END_CONST

Unconditional statements

PROGRAM Example_1

//
// Example
//
local.R100 := plc0.register.R200 + plc0.register.R201;
local.R101 := plc0.analogin.R150;

END_PROGRAM

Conditional statements

PROGRAM Example_2

//
// Example showing if-then-else-end_if
//
IF plc0.input.ix0 THEN
    local.R100 := plc0.register.R200 + plc0.register.R201
ELSE
    local.R100 := 0;
    local.R102 := 0;
END_IF

//
// Example showing if-then-endif
//
IF system.firstScan AND (local.R100 < 0 ) THEN
    local.R100 := 0;
END_IF

//
// Example of velocity calculation during linear deceleration
//
dwRemaining_distance := plc0.register.dwTargetPos - plc0.register.dwCurrentPos;
fDirection := sign( dwRemaining_distance );
plc0.register.fVelocity := fDirection * fSpeedFactor * sqrt( abs( dwRemaining_distance ) );

END_PROGRAM


Function block ( Implementation in progress. )

The following types of function blocks will be available.

  • Bitwise operations e.g. AND, OR, XOR, NOT, BITCOUNT
  • Conversion functions e.g. INT_TO_REAL, WORD_TO_REAL, ROUND, TRUNC
  • Comparsion operations e.g. EQ, NE, GT, GE, LT, LE
  • Mathematical functions e.g. ABS, SQR, SQRT, LN, EXP, LOG, 10^X, INV
  • Mathematical operations e.g. ADD, SUB, MUL, DIV, MOD
  • Shift functions e.g. ROL, ROR, ASL, ASR, SHL, SHR
  • Special functions e.g. SCALE, HI_BYTE, LO_BYTE, MIN, MAX
  • Trigonometrical functions e.g. SIN, COS, TAN, ASIN, ACOS, ATAN



Font

For all objects that displays text, typeface name, style and text size can be selected in the Font dialog.

HMI Droid font samples             HMI Droid font samples             HMI Droid font samples


Character set

For all object that displays text, the character set can be selected in the font dialogue.

Currently the following character sets are supported: Western, Greek, Turkish, Baltic, Central European, Eastern European, Cyrillic, Japanese (Shift JIS), Chinese (GB2312, BIG5) and Korean.

The iOS-version of HMI Droid currently supports the Western, Greek, Turkish, Central European, Eastern European, Cyrillic and Japanese (Shift JIS) character sets.

Update: The iOS version 1.0.22 has (experimental) support for Chinese character sets.

Below are a few examples of different character sets.

Western Cyrillic Japanese (Shift JIS) Traditional chinese
HMI western character set HMI Android russian cyrillic character set HMI japanese Shift JIS character set HMI traditional chinese character set


PHYS (Scaling)

The PHYS function can be used to translate a register value to a certain physical value and back for variables and input fields. Register value range between 0 and 65535 can be scaled to represent a certain range, for example, an analog input or output.

PHYS is configured in its own dialogue where you specify minimum value, maximum value, number of decimal places and optionally a unit.

The value for Max can be set lower than the value for Min for achieving a negative slope. A typical usage is for "reversing" the output from an ultra-sonic transducer that measures the top of the water level from the top of the tank.

If the variable is signed ie covering -32768 to 32767 instead of 0 to 65535, select "Use two's complement form of register value".

By choosing suitable values for min, max and decimals you can also utilize PHYS to handle integer values as tenths or hundredths.

HMI Droid Studio - PHYS dialog         HMI Droid - fixed decimal point      HMI Droid for iOS - fixed point


The example panel in the screenshots above is available for download.

fixed.led

Min Max Decimals Two's compl. Register value Scaled value
0 6553 1 No 0 .. 65535 0 .. 6553.5
0 655 2 No 0 .. 65535 0 .. 655.35
-3277 3277 1 Yes -32768 .. 32767 -3276.8 .. 3276.7
-328 328 2 Yes -32768 .. 32767 -327.68 .. 327.67


PHYS Example 1

A temperature sensor with a range of -30 to +70 °C is connected to an analog input on a RievTech/xLogic PLC. The analog input on this PLC uses a range of 0 to 1000 units. The values for Max and Min in the PHYS setup dialog box corresponds to a range of 0 to 65535 so the Max value has to be calculated using the formula below.

PHYS


PHYS Example 2

An ultrasonic sensor is used for measuring the water level from the top of a tank. The value from the sensor is in the range 0 to 4095 and a high value corresponds to a low water level. By entering a value for Max that is less than the value for Min, the scaled value will be "reversed". To calculate the Max value, extrapolation to a raw value of 65535 is required.

PHYS


Address format

The command address format in the format menu is used to select how the bit addresses for boolean variables should appear in the dialogues that are used to configure LEDs, Buttons and Checkboxes.

Option     Variable area     How the bit address is displayed
COMLIOctal between 0 and 37777.
ModbusDefault or RegisterAs a register address:bit number with bit number between 0 and 15. Register address specified in decimal with no leading 'R'. The highest bit address that can be used is currently R4095:14 but it will be extended to R65535:15 in the future.
ModbusI or QDecimal between 0 and 65535.
RREXDecimal between 0 and 255.
Siemens    As byte number:bit number with bit number between 0 and 7.


Variable area I and Q are available if you have chosen Modbus/TCP class 1 or Modbus RTU class 1.

Table showing principle for bit addresses

COMLI (octal)        Modbus (Rnn:n)        RREX (dec)        Siemens (DBnn.DBXnn.b)
00:000.0
10:110.1
20:220.2
30:330.3
40:440.4
50:550.5
60:660.6
70:770.7
100:881.0
110:991.1
120:10101.2
130:11111.3
140:12121.4
150:13131.5
160:14141.6
170:15151.7
201:0162.0
211:1172.1
221:2182.2
231:3192.3


Communication parameters

To facilitate the use of HMI Droid with different controllers, you can specify the communication parameters for the connection and the controller per panel (page). The parameters you specify per panel (page) will override the default settings made in the HMI Droid app on the target device.

When navigating to a panel, a new connection will be established if eg link type, IP address, or port number differs from the current connection.

HMI Droid Studio - Communication parameters for the panel (page)


Test panel

HMI Droid Studio has a feature for testing panels (pages) without first transfer the panels (pages) to an Android or iOS-device.

Currently the function supports only Modbus/TCP and Modbus RTU over TCP/IP. The other protocols and different connections like Bluetooth and UDP/IP will be added later.

Update: The Test panel mode in HMI Droid Studio V6.7.5.45 (Beta-version) now supports the Siemens S7 ISO-on-TCP protocol!!

For Modbus/TCP, the minimum required communication parameters are Link that should be set to WiFi, IP-address (or host name), Port, Protocol, Slave id and Poll interval.

The command "Test panel" in the Options menu is used to start and abort the test panel mode.

Most of the HMI Droid features, including the system registers, are working exactly the same way as on a real Android or iOS-device but navigation between different panels (pages) is not supported and the "Change value" feature for numeric variables does not support all formats.

HMI Droid Studio         HMI Droid


HMI Droid Studio         HMI Droid


HMI Droid Studio         HMI Droid



Communication protocols

Currently, the following communication protocols are available in the Android version of the HMI Droid.
Modbus and Modbus/TCP are registered trademarks of Schneider Automation Inc.


COMLI

This protocol can be run over either TCP/IP on Wi-Fi or via Bluetooth.

The messages that are implementrerade is 0, 1, 2, 3 and 4, which means that you can access the registers 0 to 3071 ( decimal ) and flags between 0 and 37777 ( octal ).

With COMLI you can write individual bits without affecting other flags in the same byte or word.

A controller that uses COMLI normally have "big-endian" byte order, which means that in "double register" the high word is stored first.

The COMLI protocol is not available in the iOS-version of HMI Droid.


Modbus/TCP

This protocol can be run over TCP/IP or UDP and typically uses port 502 in the PLC/controller.

The driver for Modbus/TCP meets Class 0 and is using functions 3 and 16 of the Modbus specification. Maximum 64,512 Holding registers can be addressed. The first register always has address 0 even if the designation for the first register in the controller/PLC is 40001 or 400001.

Logical variables ( = memories/flags ) can be mapped to bits in holding registers by writing Rnn:b, where b is the bit number between 0 and 15. Bit 0 is the least significant bit in the register and have weight 20 which is the first. Bit 15 is the most significant bit in the register and have weight 215 which is 32768.

With this protocol, you write always at least two bytes at a time. This means that controller should not affect bits in words containing bits HMI Droid will write. One should also not affect bits in the same word as HMI Droid writes from any other system around the same time.

A controller using the Modbus normally has "big-endian" byte order, which means that in "double register" the high word is stored first.

Starting with version 1.6, it is possible to choose whether high or low word is stored in the first register using the Word Swap option.

Typical communication settings for Modbus/TCP

ParameterValue
LinkWiFi (TCP/IP) or Ethernet UDP (UDP/IP)
IP-addressxxx.xxx.xxx.xxx
Port502 (Range = 1 ... 65535)
MAC-addressN/A
Use SPPN/A
ProtocolModbus/TCP or Modbus/TCP class 1
Slave Id1 (Range = 1 ... 247)
Default DBN/A
Enable life bitOptional
Address for life bitOptional
32-bit registerFor xLogic Easy PLC
Word SwapOptional
Poll intervalOptional


Modbus/TCP class 1

The same basic function as Modbus/TCP but digital signals for LEDs and buttons can be connected to inputs and outputs instead of just bits in the Holding registers by selecting variable area I for inputs and variable area Q outputs.

The following functions in the Modbus specification are used for inputs and outputs in variable areas I, AI and Q.

Reading digital inputs: Function 2 ( "Read Input Status" )
Reading analog inputs: Function 4 ( "Read Input Registers" )
Reading Outputs: Function 1 ( "Read Coil Status" )
Writing Outputs: Function 5 ( "Force Single Coil" )


Modbus RTU class 1

Like Modbus/TCP class 1 but shorter header and CRC16 checksum. In most cases a serial port is used on the controller. Can be used with connection types WiFi (tcp/ip), Efternet UDP (udp/ip) or Bluetooth.


SattBus COMLI

"Encapsulated" COMLI SattBus over Ethernet according to "SattBus Message Specification 2.0."

Link must be set to "Ethernet UPD" (udp/ip) and port number is usually set to 2999.

The SattBus COMLI protocol is not available in the iOS-version of HMI Droid.


Siemens Fetch/Write

This protocol can be run over TCP/IP and uses two ports on the controller. One port for "Fetch passive" and one port for the "Write passive". For Siemens CP 343-1 is normally port number between 1025 and 65535 used. The port number you enter in the settings will be used for Fetch and the port number  +1 will be used for write.

Step 7 uses byte addressing of the variables. 16-bit memory words that are in sequence are named eg MW0, MW2, MW4 or DBnn.DBW0, DBnn.DBW2, DBnn.DBW4 etc.

The driver for the Siemens Fetch/Write protocol can address bytes 0-127 for inputs, outputs and memory. If you use the the data block you can address words 0-2047 in the data block which corresponds to byte 0 and 1 to byte 4094 and 4095. Data block between 1 and 255 can be used.

With this protocol, you write always full byte at a time, and in the data block always two bytes. This means that the controller must not write bits in bytes, or words of the data block that contains bits that HMI Droid will be writing.

A controller that uses Siemens Fetch/Write normally have "big-endian" byte order, which means that in a double word the low word is stored first.

The Siemens Fetch/Write protocol is not available in the iOS-version of HMI Droid.

Siemens Step 7 VAT variable table      hmi android siemens step 7

Siemens S7 Communication (ISO on TCP)

Basically the same functions as the Siemens Fetch/Write-protocol.

Link should be set to WiFi (TCP/IP) and Port number should normally be set to 102.

HMI Droid will connect as an OP. Make sure that the hardware configuration for the Siemens S7 PLC has enough connection resources for OP.

In version V1.7.2 of HMI Droid, other values for rack and slot can be used for connecting HMI Droid to Siemens S7-1200, S7-1500 and LOGO!.

Currently, only the first 255 data blocks can be used but the range will be expanded.

The address range for Inputs, Outputs and Memory is 2048 words (4096 bytes).

This protocol has been tested with the following controllers:
  • CPU 314 + CP 343-1
  • CPU 315 PN/DP
  • CPU 317F-2 DP + CP 343-1
  • CPU 1212C
  • CPU 1214C
  • CPU 1215C
  • CPU 1510
  • LOGO! 0BA8
When using this protocol it will also be possible to perform some special actions like halting and restarting the PLC from HMI Droid!

HMI android siemens s7 communication

Protocols and connections

Bluetooth         WiFi (TCP/IP)         Ethernet UDP
 
COMLI BT-adapter         Port server         Port server
 
Modbus/TCP No Yes Possible
 
Modbus RTU BT-adapter Port server Possible
 
RREX BT-adapter Port server Port server
 
SattBus COMLI No No Yes
 
Siemens Fetch/Write         No Yes No
 
Siemens S7
Communication
(ISO on TCP)
No Yes No



Variable areas

HMI Droid handles logic and numeric variables. Different controllers normally store the variables in some specific areas. These areas are referred to and handled differently depending on the communication protocol used. Therefore, there is a "mapping" of how the variables used in the various items included in a panel are referenced in the controller.

Explicit mapping is done by selecting the variable area and possibly also specify the of data block.

If you do not explicitly choose a variable area, then an implicit mapping will be done to the default are chosen for the variable type and the current communication protocol.

The table shows the default mapping occurs and the mappings can be done at present.

Protocol Variable type Data block Inputs (I) Memories (M) Outputs (Q) Registers Analog inputs (AI)
COMLI Logic Default Yes
Numeric Yes Default
Modbus/TCP Logic Default
Numeric Default
Modbus/TCP class 1 Logic Yes Yes Default Yes
Numeric Default Yes
Modbus RTU Logic Yes Yes Default Yes
Numeric Default Yes
RREX Logic Default
Numeric
Siemens Fetch/Write     Logic Default Yes Yes Yes
Numeric Default Yes Yes Yes
Siemens S7 (ISO on TCP)     Logic Default Yes Yes Yes
Numeric Default Yes Yes Yes


In addition to the options for variable area as shown in the table above, you can also choose System, Local, Const and Objects.

The choice System can be used to explicitly specify that the system variables are referred to.

The choice Local means that the local variables in HMI Droid will be used. This may e.g. used for the line graph statistics functions or in testing and demo purposes. When the possibility to write PLC code type program executed in the HMI Droid and/or the panels will be introduced, the local variables also be used for this.

The variable area Const makes it possible to enter a constant value that can be used for some special purposes.

The variable area Objects makes it possible to access data in other objects.

Example of usage:

Connecting a Bar Indicator to a Numeric variable object that uses PHYS scaling with negative slope.


Modbus data types

In order to reach a specific Modbus data type, you have to choose the right variable area.

Variable area Modbus data type        Access
Register / Default        Holding Register Read/Write
I Discrete Input Read only
Q Coil Read/Write
AI Input Register Read only


Modbus word order

The Modbus specification does not indicate any word order for 32 bit variables. In HMI Droid "normal" word order, the 16 most significant bits are stored in the register with the lower address.

When using 32-bits integer or IEEE 754 single precision floats, the word order have to be reversed for some PLC:s in the Communication parameters or in the settings in the Android or iOS device.

Modbus word order


Control word with life bit

The control word works in a similar way as coordination area in Siemens operator panels. The control word's life bit should be monitored by the controller if the panel (page) is used for manual operation of any machine movement. This allows the controller to stop machine movement if the connection between the operator panel and the controller ceases.

b0 is the startup bit that goes from 0 to 1 when the panel is connected to the controller.

b1 is the operating mode.

b2 is the life bit that toggles with about 0.5 Hz.

Note: The address to the control word is a bit address and is entered in octal format. For Modbus Holding register, multiply the register address by 16 and convert it into octal format.

Example: R400011 has Modbus address 10 and octal bitaddress 240.

Other formats for the control word address, e.g. Rnnn where nnn is the Modbus address to the Holding register, will be implemented in upcoming versions.


System registers

There are a number of system registers that can be read for the diagnosis of link and protocol. The system registers can be displayed in a similar way as one showing a variable that refers to the controller. This means that you can customize your own diagnostics and tailor it to your needs. Some systems registers are writable and you can use different GUI objects like Numeric variables, Buttons, Radio buttons or Sliders to manipulate them.

System registers for connection

Address    Function
65280Link status. 0 = disconnected, 1 = connected.
65281Last error code.
65282Time in seconds the link has been connected.
65285Number of disconnections.

System registers for protocol.

Address    Function
64512Protocol status. 0 = disconnected, 1 = connected.
64513Code for the selected protocol.
64514Enable for the life bit. May be written.
64515N/A. Reserved for life bit address ( Read-only ).
64516Minimum poll interval in ms. May be written.
64517Current Modbus Slave Id ( Read-Only ).
64518Requested Modbus Slave Id ( Read/Write ).
64519Modbus max block size. Read-Only.
64520Siemens S7 (ISO-on-TCP) error code.
64521Siemens S7 (ISO-on-TCP) rack.
64522Siemens S7 (ISO-on-TCP) slot.

System registers for protocol. ( Polling/Read )

Address    Function
64528Number of polling queries. May be written.
64529Polling queries per second.
64530Polled data bytes per second.
64531Time for polling cycle in ms.
64532Number of retransmissions. May be written.
64533Number of communication areas.
64534Current communication area.
64535Maximum time for polling cycle in ms. May be written.
64536Error code during polling. May be written.
64537Last sent Modbus FC during polling. May be written.

System registers for protocol. ( Transfer/Write )

Address    Function
64544Number of transfers. May be written.
64545Time of transfer in ms.
64546Maximum time for transfer in ms. May be written.
64552Error code during transfer. May be written.
64553Last sent Modbus FC for transfer. May be written.


HMI Droid Modbus System registers example HMI Droid Modbus System registers example      Odrid HMI System Registers

The example panel in the screenshots above is available for download.

172 mb tcp.led

Download the file and open it in HMI Droid Studio.
Modify the IP-address in the communication parameters settings to match your PLC/controller.
Use the Test run feature or transfer the file to the Android or iOS-device.
This panel (page) is 320 dp wide. On some devices the panel scaling feature therefore must be enabled to fit the workspace.


System flags

There are a number of logical variables (flags) in the system variable area which can be used to show the if the communication works.

Address    Function
65280True when connection with the controller or PLC is established. (System register 65280 = 1)
64512True when the communication protocol in running. (System register 64512 = 1)

hmi droid studio system flags hmi droid system flags hmi droid system flags

The example panel in the screenshots above is available for download.

system flags.led

Download the file and open it in HMI Droid Studio.
Modify the IP-address in the communication parameters settings to match your PLC/controller.
Use the Test run feature or transfer the file to the Android or iOS-device.
This panel (page) is 320 dp wide. On some devices the panel scaling feature therefore must be enabled to fit the workspace.


Addressing variables in xLogics PLC's

Table which shows the principle of how to choose variable area and enter address for accessing the logical variables in xLogics PLCs with the HMI Droid.

Variable designation in the PLC        Variable area        Address
I 1I0
I 2I1
I 3I2
I 4I3
etc
Q 1Q0
Q 2Q1
Q 3Q2
Q 4Q3
etc
B 1Q256
B 2Q257
B 3Q258
B 4Q259
etc
F 1Q1536
F 2Q1537
F 3Q1538
F 4Q1539
etc



Addressing variables in Koyo Click PLC's

Use the Modbus/TCP class 1 selection for protocol.

Bit-variables (X/Y/C/CT/SC)

Address in PLC         Data Type         Modbus 984        
address
Variable area         Variable address        
X1 BIT 100001 I 0
X2 BIT 100002 I 1
X3 BIT 100003 I 2
etc
 
Y1 BIT 8193 Q 8192
Y2 BIT 8194 Q 8193
Y3 BIT 8195 Q 8194
etc
 
C1 BIT 16385 Q 16384
C2 BIT 16386 Q 16385
C3 BIT 16387 Q 16386
etc
 
T1 BIT 145057 I 45056
T2 BIT 145058 I 45057
T3 BIT 145059 I 45058
etc
 
CT1 BIT 149153 I 49152
CT1 BIT 149154 I 49153
CT1 BIT 149155 I 49154
etc
 
SC1 BIT 161441 I 61440
SC2 BIT 161442 I 61441
SC3 BIT 161443 I 61442

Numeric variables (DS/DD/DH/DF)

Address in PLC         Data Type         Modbus 984        
address
Variable area         Variable address        
DS1 INT 400001 Register/Default 0
DS1 INT 400002 Register/Default 1
DS1 INT 400003 Register/Default 2
etc
 
DD1 INT2 416385 Register/Default 16384
DD1 INT2 416387 Register/Default 16386
DD1 INT2 416389 Register/Default 16388
etc
 
DH1 HEX 424577 Register/Default 24576
DH2 HEX 424578 Register/Default 24577
DH3 HEX 424579 Register/Default 24578
etc
 
DF1 FLOAT 428673 Register/Default 28672
DF2 FLOAT 428675 Register/Default 28674
DF3 FLOAT 428677 Register/Default 28676

Words consisting of bit-variables (XD/YD/TD/CTD/SD)

Address in PLC         Data Type         Modbus 984        
address
Variable area         Variable address        
XD1 HEX 357345 AI 57344
XD2 HEX 357347 AI 57346
XD3 HEX 357349 AI 57348
etc
 
YD1 HEX 457857 Register/Default 57856
YD2 HEX 457859 Register/Default 57858
YD3 HEX 457861 Register/Default 57860
etc
 
TD1 INT 445057 Register/Default 45056
TD2 INT 445059 Register/Default 45058
TD3 INT 445061 Register/Default 45060
etc
 
CTD1 INT2 449153 Register/Default 49152
CTD2 INT2 449155 Register/Default 49154
CTD3 INT2 449157 Register/Default 49153
etc
 
SD1 INT 361441 AI 61440
SD2 INT 361442 AI 61441
SD3 INT 361443 AI 61442
etc
 



S7 and STEP 7 are trademarks of Siemens AG.



IDEA-Teknik
Långelanda-Stala 764
SE-472 93 SVANESUND
SWEDEN
                  Telefonnummer

                  e-mail
info@idea-teknik.com



Back to Top