Dabit Solution Co. Jan. 02, 2018 www.dabitsol.com 1 Memory Map for MODBUS RTU – DABIT Protocol 1. Introduction This documents is for the devices (PLC, MMI, etc.) which using MODBUS-RTU communication protocol. By mapping the message data with this memory map, the devices can communicate with the DABIT controller inside LED sign, and display on the sign in real time. Before this application, you can use the DABIT protocol simulator to perform “Messaging simulation & test, Initial setting, etc.” 2. Structure and Features Available Functions: “16 (0x10) Write Multiple registers" and "03 (0x03) Read Holding Registers" RTU Frame. One register takes “2 byte”. The screen can be divided into 3 sections for displaying different message data concurrently. Area Number of Registers A. Configuration Setting 5 B. Date & time setting 7 C. Calling a stored message/image [#0~#255] 1 D. Message data [Section 0, default] Display Property 16 Text color 0~100 (variable) Text message 0~100 (variable) E. Message data [Section 1, option] Display Property 16 Text color 0~100 (variable) Text message 0~100 (variable) F. Message data [Section 2, option] Display Property 16 Text color 0~100 (variable) Text message 0~100 (variable) A. Configuration setting of DABIT Controller ▫ The setting values are stored in the flash ROM, so they are preserved even when the power is reset. ▫ Start address of the memory map: Enter the absolute start address of Register. Start address can be changed from 0 to 60 in multiples of 1000. For example, if you set it to 15, DABIT creates a map from address 15,000.
14
Embed
Memory Map for MODBUS RTU DABIT Protocoldabitsol.com/files_en/en_Memory Map_Modbus RTU_DABIT... · 2018. 1. 4. · Memory Map for MODBUS RTU – DABIT Protocol 1. Introduction This
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 1
Memory Map for MODBUS RTU – DABIT Protocol
1. Introduction
This documents is for the devices (PLC, MMI, etc.) which using MODBUS-RTU communication protocol. By
mapping the message data with this memory map, the devices can communicate with the DABIT controller inside
LED sign, and display on the sign in real time.
Before this application, you can use the DABIT protocol simulator to perform “Messaging simulation & test, Initial
setting, etc.”
2. Structure and Features
Available Functions: “16 (0x10) Write Multiple registers" and "03 (0x03) Read Holding Registers" RTU
Frame.
One register takes “2 byte”.
The screen can be divided into 3 sections for displaying different message data concurrently.
Area Number of Registers
A. Configuration Setting 5
B. Date & time setting 7
C. Calling a stored message/image [#0~#255] 1
D. Message data
[Section 0, default]
Display Property 16
Text color 0~100 (variable)
Text message 0~100 (variable)
E. Message data
[Section 1, option]
Display Property 16
Text color 0~100 (variable)
Text message 0~100 (variable)
F. Message data
[Section 2, option]
Display Property 16
Text color 0~100 (variable)
Text message 0~100 (variable)
A. Configuration setting of DABIT Controller
▫ The setting values are stored in the flash ROM, so they are preserved even when the power is reset.
▫ Start address of the memory map: Enter the absolute start address of Register.
Start address can be changed from 0 to 60 in multiples of 1000.
For example, if you set it to 15, DABIT creates a map from address 15,000.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 2
▫ Maximum characters: The maximum number of characters that each section can display.
The initial value is set to 48 characters (96 bytes), and it can be set between 1 and 100 (200 bytes).
Changing this value changes the number of registers for the character color and the character, thus
resulting in changing the entire address map.
▫ Number of vertical modules: Set the number of modules in the vertical column of the sign board.
1 module is based on 16 x 16 pixels.
▫ Number of horizontal modules: Set the number of modules in the horizontal row on the board.
B. Setting current date & time
▫ Synchronize DABIT’s Real Time Clock.
The built-in battery maintains the current time up to 5 days even if power failure occurs, and error of
several seconds per month occurs.
▫ The date and current time are read / written in BCD code.
▫ The sign can display various information message (date and time, temperature, humidity, etc.) by our
technical support.
C. Calling a pre-stored message/image to display on the sign
▫ You can simply call the number of stored message/image file and directly display on the LED sign.
▫ With our Dabitche free-software, you can easily create/edit them in text/graphic/animation files (Max.
255) in the format of the sign’s size & color, and upload to the DABIT controller. When requested, we
provide the related guidance or a remote support (through Teamviewer) for this application.
▫ If the file size is over the memory capacity, a USB memory can be available.
D. Message Data components
▫ Display Properties: Set the Properties in 16 register (32 bytes).
▫ Text Color: Set the individual character color in 2 bytes.
▫ Text Message: Set the individual character in 2 bytes for ASCII characters, Korean, Unicode, etc.
The length of Text color is always the same as the length of Text message.
E. Message description
▫ You can anytime transmit the frequently changing message data from your system and display on the
LED sign in real-time with this memory map.
In addition, Routine messages (guidance, notices, warnings, etc.) and Information messages (date &
time, temperature, humidity, etc.) can be easily displayed along with the real-time message by our simple
technical support.
▫ The data is written to the RAM in DABIT controller without limitation, but the message data will disappear
when the power is reset.
▫ When you use the full screen (Section 0 only) without section division, "Display Properties > No.3
Display Control" of "Section 1, Section 2" retains the initial value " 0000H (NO display)"
▫ You can separately transmit data for Display Properties, Text color codes and Text message. If you
transmit Text message data only, the message will be displayed on the sign with Display Properties and
Text color transmitted previously.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 3
F. Starting address of each Area
When you send message data for each area individually, set the starting address and the number of register
as follows:
Area Starting address Number of register
Configuration setting 1st register of “Start address of
memory map” 5
Data & Time setting 1st register of “Year” 7
Calling a pre-stored
message/image 1st register of “file number” 1
Display Property
of each message section 1st register of “Display Property” 16
Text color
of each message section 1st register of “Text color”
0~100
(same as below text message)
Text message
of each message section 1st register of “Characters”
0~100
(number of characters x 2 )
G. Memory Map Initialization
If the start address is set to “FFF0H”, the memory map is initialized, thus the configuration get the default
value.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 4
3. Memory Map Description
Area NO. Register
Address
Data Address Byte Item
Initial value
DEC HEX DEC HEX
Configur-
ation
Setting
1 1 0 00 00 2 Start address of map 0 00 00 [1]
2 3 2 00 02 2 Max. number of characters 16 00 10 [2]
3 5 4 00 04 2 Number of vertical modules 1 00 01 [3]
[1] Map start address: can be set from 0 to 60 in multiples of 1000.
Ex.) 0000H: address 0, 0001H: address 1000, 0010H: address 10,000, 0025H: address 25,000 …. [2] Max. number of characters: The maximum number of characters that each section can display.
The initial value (0010H) indicates 16 characters (32 bytes), and it can be set between 1 and 100 (200 bytes). Changing this value changes the number of registers for the character color and the character, thus resulting in changing the entire address map.
[3] 1 module is based on “16 x 16” dot-matrix pixels. Ex.) 1 row x 6 columns (0001H 0006H), 2 rows x 8 columns (0002H 0008H)
[4] The message mode retains the default value “0000H” for the real-time display message. [5] Date & time is BCD codes. The sample shows "2014-12-31 (Wed) 01:10:00", but the actual time on the PC is
read.
[6] The pre-stored text/graphic message file number to call to display on the sign. Refer to “2-C” for details.
Hex value 00 00 00 01 00 02 00 03 ~ 00 FF
File NO. Do not call File #1 File #2 File #3 ~ File #255
[7] Page number: The real-time message retains the initial value "0". Up to 255 page messages can be registered
and displayed sequentially. A separate guide is available for those who need it. [8] Section number: The screen can be divided into 3 sections for displaying different message concurrently.
Hex value 00 00 00 01 00 02
Section number Section 0 (default screen) Section 1 Section 2
When you divide a section, you need to set the coordinate value of the section according to [16] below. When using only the basic full screen, keep “Display Properties> 3. Display Control" for "Section 1 & 2" at the
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 6
initial value “00 00H(not displayed)”. [9] Display control: Display time(s) of repetition
00 00(Hex) 00 01 00 02 00 03 ~ 00 62 00 63
No display 1 time 2 times 3 times ~ 98 times No limit
☞ 00 63H : display unlimitedly, or until the next message data comes.
[10] Display method
00 00H Display the new message after the current display is finished
00 01H Stop displaying the current message, and start displaying the new one immediately.
[11] Character-set code
00 00H ASCII alphanumeric, Korean, Custom user font
00 01H Unicode for Chinese, Japanese, Arabic, etc.
( Detailed guidance and font files to be provided to the user only)
[12] Font size You can choose the font size in pixels (width x height). ASCII characters (Alpha-numeric) has half size in width of the other common language characters.
ASCII characters 6 x 12 8 x 16 10 x 20 12 x 24 14 x 28 18 x 32
Other characters 12 x 12 16 x 16 20 x 20 24 x 24 28 x 28 32 x 32
[13] Entry/Exit effect: This is to set the effect of message how to appear or disappear on the screen. For details, “Attach.1 Codes for Entry / Exit effect”. The default value “0001H” indicates “simple stop effects with no direction”.
[14] Effect speed: This is to set the relative speed for entry / exit effect of the message. The smaller the value, the faster the speed.
Hex value 00 00 00 0A 00 14 00 1E 00 28 00 32 00 3C ~ 00 FF
Relative Speed 0 10 20 30 40 50 60 ~ 255
“10~30” is recommended for “Shifting to Left” effect, while “50~80” for “Blinking” effect. [15] Stay time: This is to set the staying time of the message after entering the screen.
Hex value 00 00 00 02 00 04 00 08 00 0A 00 0F 00 14 ~ 00 EF
x 0.5 sec. 0 2 4(2 sec.) 8 10 15 20 ~ 239
Actual staying time (in second) shall be multiplied by “0.5” to the set value. When using Shifting Effect for message longer the screen width, Stay Time is to set to “0000H”.
[16] X/Y coordinates When dividing the screen into sections, set the start / end position of each section by 4-pixel unit from the top leftmost corner (0,0) as below.
If you do not split the screen, all coordinate values of the section shall keep the default value “00H”. You can also set the coordinate values when you want to display the message on the main screen (section 0) at a specific position rather than from the top leftmost (default). For example, if you want to display a message from the positon of “4 pixels from the top, 8 pixels from the leftmost”, just set “X Start: 0002H, Y Start: 0001H” while others keep the initial value (0000H).”.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 7
[17] Background image number You can store various text / graphic / animation files in a background playlist file(*.bgp) in the controller by using DabitChe software, and call the file number by below code to use it as a background image for the text message.
00 00H 00 01H 00 02H 00 03H ~ 00 FFH
No use File #1 File #2 File #3 ~ File #255
The background file can be called only in “Section NO.0”. The right image is the example inserting the “blue horizontal line” on the text message. The detailed guidance will be provided, when requested.
[18] Text Color Code You shall set individual color code per character in 2 bytes as follows:
Color - Red Green Yellow Blue Purple Sky blue White
※ Example of Text Color code in two bytes (Hex)
i n d u s t r i a l L E D s i g n 1 2 3 00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
02
00
01
00
02
00
03
00
03
00
05
00
06
00
07
00
04
00
04
00
01
00
01
00
01
As the sample above, the blank space (00 20H) must be assigned with any of one color code length. Therefore, the total byte of “text color code” is always the same as the one of “text code”.
[19] Text Message (Characters) Code
Each character takes two bytes. ASCII character made of “one byte” have to be added a heading “00H” to the code to be “two bytes” code.
※ Example of ASCII character code in two bytes (Hex)
i n d u s t r i a l L E D s i g n 1 2 3 00
69
00
6E
00
64
00
75
00
73
00
74
00
72
00
69
00
61
00
6C
00
20
00
20
00
4C
00
45
00
44
00
20
00
73
00
69
00
67
00
6E
00
20
00
31
00
32
00
33
[20] Using “Section 1” screen
To send an individual message data to display on the divided “Section 1” screen, proceed as the follows on the “Section 1” area of the map:
① Change the value of "Display Property> 3. Display control" from "0000H (not displayed) to “0063H (always displayed) ".
② Set the coordinate value of the "Section 1" screen. ☞ Refer to "[16]"
③ Input the desired “display Property, character code and character color” in the same way as for "section 0".
[21] Using “Section 2” screen To send an individual message data to display on the divided “Section 2” screen, proceed as the same as above [20] on the “Section 2“ area of the map.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 8
4. Application Examples
3.1 Configuration Setting
16 (0x10) Write Multiple registers
“Function code 16” writes each data in 16-bit size.
The master transmits “the starting address, number
of register and the data”, and the slave responds
with “the starting address and number of register”.
03 (0x03) Read Holding Registers
“Function code 3” reads each data in 16-bit size. The
master transmits “the starting address, number of
register”, and the slave responds with “the number of
output data from the corresponding address”.
Register starts from “00 00H” while the data address
starts from “00 01H”.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 9
3.2 Date & Time Setting This is to synchronize the date & time of the sign’s clock with the clock of your pc or systems to keep. The data is in BCD codes.
3.3 Calling a pre-stored message file number This is to call the number of pre-stored message file number to display on the signboard. The LED controller can store various message files (Max. 255) in text/graphic/animation images by using Dabit software for this application. When not using this function, keeps the initial value “00 00H”.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 10
3.4 Setting Display Properties of Text Message This is to set how to display the text message on the screen. You can set up the 16 properties for each message section. Below is an example for setting the initial display properties. It is a good practice to change any property of the example to see the message display image on the sign, one by one, by referring to “2.[7] ~ 2.[17]”.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 11
3.5 Setting Text Color This is the text color data for displaying “ 1123ABC1“. By referring to “2.[18]”, try to change the character color, one by one, and see the display image on the LED sign.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 12
3.6 Setting Text Message This is the text message data for displaying “1123ABC1“. By referring to
“2.[19]”, try to change the characters, one by one, and see the display image
on the LED sign.
Dabit Solution Co. Jan. 02, 2018
www.dabitsol.com 13
Attachment 1. Codes for Entry / Exit effect
HEX 효과 방향 설 명
00 00 None - None
00 01
Stop
None
00 02 Bright On The message gradually brightens. The message gradually darkens.
00 03 Bright Off
00 04 Horizontal Mirror Repeat between the normal image and the reflected image on the mirror horizontally or vertically. 00 05 Vertical Mirror
00 06
Shift
Left
The message enter/exit by scrolling by 1 pixel. [1] [2] 00 07 Right
00 08 Up
00 09 Down
00 0C
Wipe
Left
The message enter/exit by written on the screen by 1 pixel. 00 0D Right
00 0E Up
00 0F Down
00 12
Blind
Left
The message enters / exits like window blinds. 00 13 Right
00 14 Up
00 15 Down
00 18
Curtain
Horizontally to each side
The message enters / exits like a window curtain. 00 19 Horizontally to Center
00 1A Vertically to each side
00 1B Vertically to center
00 23
Zoom-In
Left
The message enters gradually enlarging.
00 24 Right
00 25 Up
00 26 Down
00 27 Right Down
00 28
Rotate
Counter-clockwise 1 The message rotates
00 29 Clockwise 1
00 2A Counter-clockwise 2 The message rotates in two pieces
00 2B Clockwise 2
00 2C
Blink B.G.
Red
The background is blinked 8 times with the selected color. 00 2D Green
00 2E Blue
00 2F White or yellow
00 30 All colors The background is blinked 8 times each color one by one.
00 31
Blink Text
Red
The selected text color is blinked 8 times. 00 32 Green
00 33 Blue
00 34 White or yellow
00 35 All colors The text is blinked 8 times every 4 color one by one.
00 36 3D Effect Left The text rotates in 3D effect. [2]
00 7A Random Random All effects above are randomly applied one by one.
[1] In case the text is suddenly disappeared during scrolling to left, add many blank spaces (20H) at the end of the text until
this problem is cleared. The number of blanks are different from “the sign size in width, font size and the length of text
message”.
[2] In case of “Shifting to left(06H)” 또는 “3D effect to Left(36H)”, Entry effect and Exit effect must be the same and the Stay
This information may differ depending on the controller type & version you are using and the options used. If you have any questions, please contact [email protected]. The copyright of this book including the embedded images is in Dabit Solution. Thank you.