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.
ADC will be closed Friday, July 4th, to celebrate Independence Day. Orders placed after cut-off times on Thursday will be processed and shipped on Monday, July 7th.
+
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 1) 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=GZtvvz36Eso&utm_medium=VideoTeamDescription

(VID-VW-0011)

How to use the Productivity3000 to display Dynamic messaging on the ViewMarq Display (messages less than 128 characters, including formatting)

REQUIRES Software Version 1.8 or Better

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

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


Hide Transcript
View Transcript

Suppose you want to switch dynamically switch between two messages like this. You could create two instructions where one has message A and the other one has Message B - right? Sure. But what if you wanted to switch between 10 or 20 or even a hundred different screens? Do you really want to create all of those separate ViewMarq instructions and every time you make a change you would have to update or change all of them? Again, you CAN do that, but with the Productivity 3000 there is a much easier way. It's called Dynamic Text. In the simplest case, instead of putting the text here, you just create a String Tag, and put that tag right here. Then when the program wants to change the message, it just puts whatever ViewMarq String it wants in this tag, re-toggles this instruction, and that updates the ViewMarq display. Now you are using one instruction to display any message you want simply by changing the contents of the TAG. And while that's pretty handy, there is still an even better way to handle large quantities of messages by using indexed arrays. And it makes your life so easy - let's take a look. In this program, this Init routine is called on the first scan. His whole purpose in life is to fill this ViewMarq Message array with ViewMarq Strings. Looks like we have these 5 messages stored in the first 5 slots of this array. Back in the main program, we just look to see if the index has changed, and if so, we send a ViewMarq Message. When that happens, this instruction is going to send whatever message is in this array at this index offset. And that's dynamic text -- it's exactly like before - this instruction is just going to send whatever string is in the TAG, instead of what was in this static text box. Note this little trick here -- when the index changes, we set the previous index equal to the index so on the next scan these two are be equal and they don't retrigger this instruction. Now anytime the program changes the index to a new message, this will be different and this instruction will get triggered. How cool is this -- Now I can add as many instructions as I want to this array and my PLC code that displays the messages never changes. My program just changes the index whenever it wants to change the ViewMarq display. That's it. This is a really great way to keep your code easy to modify and maintain. Let's try it. I'll transfer the project down to this controller. And bring up a data view so we can change that index. There's the index right there -- I'm going to write it out to give us a baseline. Let's pretend we're the program and somewhere else in our PLC code we decide we want to display a different message. Well, all our code has to do is change the index. Let's say he wants to display message 3. And BOOM, the ViewMarq display instantly updates. What if you code wants to display message 5? We'll it just changes the index, and again, boom, the new message appears. Easy So again, now you can have as many messages as you want, and never have to change your ViewMarq display code! Some folks may not be real familiar with arrays, so how do you create an array of strings like this ViewMarq Message string we used over here? Well, it's easy. Just go to the Tag Database. You add a tag. Give it a name. Let's call it VStrings. We want to create a 1 dimensional array of strings. We want each of those strings to be a max length of 128 characters. And let's create a set of, oh I don't know, maybe ten of those. So this array of strings can hold up to 10 strings. That's it, now you would just fill that string in with messages back here in Init and back here in main in our ViewMarq instruction we would just swap out this string array for the new one we created. That's it. That's all there is to it. Did you notice that the messages used in this example were all shorter than the 128 character max length of a Productivity3000 String? That was for the convenience of this video, of course, but truth is, most ViewMarq messages you use will be longer than 128 characters -- especially if you use a lot of formatting options and variables. So, what if you need to use a longer ViewMarq String? Check out part 2 to learn the trick ... It's the same thing we did here, but instead of using 1 D arrays, we use 2 D arrays. Well, That ought to be enough to get you going with SHORT Dynamic Text strings. 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 1) 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