AutomationDirect
Search
Login | Register
Accounts & Orders
Cart
0
$0.00

Recent Orders

View and Manage | Request Cancellation
Loading Order History
Loading...Loading...

Your Account

Account Home

Checkout   $0.00


  • My Orders
  • Product Returns (RMAs)
  • Pay Proforma Invoices
  • Pay Freights
  • Invoices / Invoice Reprint
  • Quotes / Favs / BOMs
  • Packing List Reprint
  • My Product Docs
  • Credit Application
  • Tax Exemption
| Direct Sales in US and Canada | 1-800-633-0405 | About Us | Contact Us | Line Card
Products | Support
| Compare
  
Ordering Tools  
warning Cookies are not enabled on your browser.
Cookies are required for our site. Please enable cookies in your browser preferences to continue.
+
Navigation
+
Shopping Categories
  • Barcode / RFID / Vision
  • Bulk Wire & Cable
  • Cables (Terminated)
  • Circuit Protection / Fuses / Disconnects
  • Communications
  • Drives & Soft Starters
  • Enclosure Thermal Management & Lights
  • Enclosures & Racks
  • Field I/O
  • HMI (Human Machine Interface)
  • Hydraulic Components
  • Motion Control
  • Motor Controls
  • Motors
  • Pneumatic Components
  • Power Products (Electrical)
  • Power Transmission (Mechanical)
  • Process Control & Measurement
  • Programmable Controllers
  • Pushbuttons / Switches / Indicators
  • Relays / Timers
  • Safety
  • Sensors / Encoders
  • Stacklights
  • Structural Frames / Rails
  • Tools & Test Equipment
  • Valves
  • Water (Potable) Components
  • Wiring Solutions
  • Retired Products
+
Learn More
  • Brand Line Card
  • What's New
  • E-newsletter
  • Online PDF Catalog
  • Video Tutorials
  • Company Reviews
  • Learning Library
  • Affordable Training
  • Free Online PLC training
  • Cybersecurity
+
In Depth Product Sites
  • Programmable Logic Controllers
  • Productivity1000 PLCs
  • Productivity2000 PLCs
  • Productivity3000 PLCs
  • ProductivityCODESYS
  • LS Electric XGB Series PLCs
  • ProductivityOpen
  • CLICK PLCs
  • Do-more H2 PLCs or
    Do-more T1H Series
  • Do-more BRX PLCs
  • C-more Touch Panels
  • AC & DC Drives
  • Motion Control Components
  • Servos
  • StrideLinx
  • Pneumatics
+
Product Selectors &
Configuration Utilities
  • PLC Family Selector
  • P1000 PLC Systems
  • P2000 PLC Systems
  • P3000 PLC Systems
  • ProductivityCODESYS
  • CLICK PLC Systems
  • Do-more® BRX PLC Systems
  • LS-Electric® XGB PLC Systems
  • Productivity®Open Systems
  • Datalogic® Safety Light Curtains
  • LS-Electric® Servo Systems
  • Nitra® Pneumatic Grippers
  • Object Detection (Sensors)
  • PAL Controller Configurator
  • Precision Gearbox Selector
  • Protos X® Field I/O
  • Quadritalia® Modular Enclosures
  • Stellar® Soft Starters
  • Stepper System Selector
  • SureFrame T-slot Extrusion
  • SureMotion® XYZ Gantry
  • SureServo2® System Selector
  • SureStep® Linear Actuators
  • Timing Belts & Pulleys
  • Werma® Stacklights
  • ZIPLinks

Productivity3000 Dynamic Text to ViewMarq LED (Part 2) at AutomationDirect


Related Products

MD4-0112T-1
MD4-0112T-1 Thumbnail
MD4-0124T-1
MD4-0124T-1 Thumbnail
MD4-0212T-1
MD4-0212T-1 Thumbnail
MD4-0224T-1
MD4-0224T-1 Thumbnail
MD4-0412T-1
MD4-0412T-1 Thumbnail
MD4-0424T-1
MD4-0424T-1 Thumbnail
MD-BRK-1
MD-BRK-1 Thumbnail
MD-BRK-2
MD-BRK-2 Thumbnail
MD-COM-COV
MD-COM-COV Thumbnail
MD-PGMSW
MD-PGMSW Thumbnail
MD-PWR-COV
MD-PWR-COV Thumbnail
MD-TERM-SET
MD-TERM-SET Thumbnail
MD-USER-M
MD-USER-M Thumbnail
P3-550
P3-550 Thumbnail
P3-530
P3-530 Thumbnail
P3-550E
P3-550E Thumbnail
P2-550
P2-550 Thumbnail


To learn more: https://www.automationdirect.com/p3000?utm_source=3sGCKMG_Cr4&utm_medium=VideoTeamDescription

(VID-VW-0012)

How to use the Productivity3000 to display Dynamic messaging on the ViewMarq Display (messages greater than 128 characters, including formatting) REQUIRES Software Version 1.8 or better

Online Support Page: https://community.automationdirect.com/s/?utm_source=3sGCKMG_Cr4&utm_medium=VideoTeamDescription

**Please check our website for our most up-to-date product pricing and availability.


Hide Transcript
View Transcript

In the first part of this video, we cheated a little bit. Did you notice? All of the ViewMarq messages were less than 128 characters long -- That's the maximum allowed length of a string in the Productivity 3000. The problem is ViewMarq messages can be up to 500 characters. And honestly, you'll find most of your ViewMarq messages will be longer than 128 characters -- especially when you start using a lot of formatting like this or you start using variables. So ... How do you handle these longer messages if the Productivity 3000 can only handle 128 characters at a time? We'll it is the exact same concept as we used in the previous video with the 1 D arrays, but now you just have to break things up a little bit and take advantage of the Productivity 30000's 2D arrays. Over in the TAG database, instead of creating a 1D array of strings, you create a 2D array of strings. Let's give it a name - we'll call this one Long Messages. It's a 2 D array of strings. We want each of those strings to be 125 characters long, and we need four of those to build a 500 character ViewMarq message. And let's see. Let's go ahead and have this array hold 15 of those 500 character messages. We can always change that later if we need to add more messages. So over here in the Init routine, we just fill in as many of these 125 character sub strings as we need. For example. Here's that ViewMarq message we had a second ago. It was what .. 414 characters long. I'm going to copy this and I'm going to drop it into notepad. Then in notepad I'm going to make myself a little ruler. There's 10 characters. Copy that. And that will give me 20, 30, 40, 50, 60, 70, 80, 90, 100, 10, 20. 1, 2, 3, 4, 5 characters. Now I have a 125 character ruler and I can use that to break up my message. Let's find a nice clean place to break it. Let's break it right there. And let's see ... I like to break it at a non-whitespace, so I'll grab that one right there. And that one right there. Now I have four parts of that message, all less than 125 characters. Now we just take the first part, copy that, go over here to our copy data instruction, and drop it into that 2-D string we just created. This will go into string number 1, part 1. He gets that first sub-string. Remember to start with quotes, and end it with quotes. Then we drop the second string into the first message, part 2. Let me go get that guy, and drop him in here. The third part -- guess where that is going to go ... yep, you got it. Message 1, part 3. Let me go grab that guy. And drop it in. Opening quote, paste, close quote. And let's go ahead and do the last one. And we are done. We now have the first message setup. I went ahead and created a few more messages for us to play with. But you see the pattern here. Here's the original message with his four parts. The second message with his two parts. Third message has two parts. Fourth message has two parts. And the fifth message has two parts. And notice that these don't have to be in any particular order. Just make sure you get all of your substrings filled in. Well, given that we have populated all of the strings, all we have to do now is go back to main, drop into the ViewMarq instruction, and put our new 2 D string in here. This is LongMsgs, and we want the index to pick which message to display. And right here we put part one. I'm going to copy that. So down here, I can put part 2. Over here I can put part 3. And over here we can put part 4. So now the ViewMarq instruction will automatically assemble the four parts of this and send them out to the ViewMarq for you. How about that? So really, other than using this new 2D array to create the long string, this is identical to the simple version we had with short strings in the previous video. Somewhere in your PLC code, you just change that message index and you get a new display. The ViewMarq instruction does all the dirty work for you. Let's go ahead and try it real quick. I'm going to transfer this down to the controller. And now, to display those long strings we just change the message index -- just like before. Let's go ahead and display message 1, and there it is. Message 2 and there he is. Message 3. Message 4. And message 5. So the beauty of this is -- look -- we didn't change a thing up here in the main program level. All we did was populate the strings and put the new 2 D array in our instruction. That's it. And again -- I can add as many long messages as I want now, and my ViewMarq display code doesn't change a bit, does it? That's a real time saver for large projects and makes changing messages a snap. And all it cost us was making a simple 2D array over there in the TAG database, and filling it up with all of those 125 character chunks of the ViewMarq messages. Easy. Well, that ought to be enough to get you going with LONG Dynamic Text strings. Check out the other How To videos in this series to get the most out of your Productivity 3000 and ViewMarq systems. And please let us know if you have any questions. Automation Directs Customer Support is always free and just a phone call or e-mail away. Performance plus Value ... That's productivity. From Automation Direct.



No data returned!
An error has occurred! Please contact support
Videos Home > Productivity3000 Dynamic Text to ViewMarq LED (Part 2) at AutomationDirect
Contact, Connect & More
Sign Up
to receive:
FREE e-Newsletter
sign up today!
Connect With Us
Social Media Channels:
linkedin    facebook    x    instagram    youtube
Company Information
About Us
Brand Line Card
System Integrator Program
International Sales
Panel Builder Program
Site Help
Company Reviews
Download Price List
Contact Us
Contact Options
1-800-633-0405
Monday - Friday
9 a.m. - 6 p.m. ET
excluding holidays
Career Opportunities
Voted #1 mid-sized employer in Atlanta
We're a great place to work!
Check out our job openings

Need Training?
Affordable Training by Interconnecting Automation
Free Online PLC Training
FREE Video Tutorials
Information & News
What's New / In The News
FREE e-Newsletter
Automation Notebook
Product Literature
White Papers
News, Product and Training Bulletins
E-Books
Shop with confidence
Checked   Safe & Secure
payment methods


We accept VISA, MasterCard, Discover, American Express, PayPal or company purchase orders.
AutomationDirect

BBB Accredited

Voted #1 mid-sized employer in Atlanta
Check out our job openings

Copyright © 1999-2025 AutomationDirect.  ALL RIGHTS RESERVED.
Site Map     Send Us your Feedback     Unsubscribe     Email Preferences     Legal & Business Policies     YouTube Terms of Service
Clear login credentials



Back to Top


spinner Updating...
Info