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

BRX Do-more PLC Using Variables with ViewMarq LED from AutomationDirect


Related Products

H2-DM1
H2-DM1 Thumbnail
H2-DM1E
H2-DM1E Thumbnail
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
H2-DM1E-START
H2-DM1E-START Thumbnail
T1H-DM1E
T1H-DM1E Thumbnail
T1H-DM1
T1H-DM1 Thumbnail


To learn more: https://www.automationdirect.com/do-more?utm_source=nn8vHjEbdbo&utm_medium=VideoTeamDescription

(VID-VW-0009)



This video demonstrates how to use variables with the ViewMarq LED messging display.

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

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


Hide Transcript
View Transcript

In the previous videos we simply sent static text to the Viewmarq Display. What if you want to update the display in real time with things time, or counts, or temperature, or fluid levels, etc.? Do you have to continuously re-send all that formatting information over and over again? No, you don't. The good news is you can use variables with the Viewmarq. And it is so easy - You just setup the formatting once with place holders for the variables, then later all you have to do is send the variable and the Viewmarq will format it and put it where it belongs automatically. Let' see how that's done. Over in the Viewmarq software we create our message. Let's see, we're using a 4x12 display, and our unit has an ID of one. On the first line we'll display the number of units completed. So we type "Units:" and then hit this button to insert a numeric variable. We choose 1 of 32 possible numeric variables -- we'll choose number 1 right now -- how many total digits will be needed, how many decimal digits will be needed and you can see an example of the result right here. In our example we are going to pretend that the factory can't produce more than 100,000 units per day, so we'll need 6 place holders for that. And we're producing whole units so we don't need any decimal digits here so I'll dial those down. This is what our final result will look like, 6 decimal digits. When we go to set the variable from the PLC we will want to copy this string right here. That's the one that actually sets the variable. We'll come back to that later. For now, let's just insert this variable into our string. And we can see how it looks. Now one thing I like to do -- I'm going to double click on this to go back to the dialog -- is I like to set the leading zeros. That way I can see visually how much space it is going to take up on my display. To display time down here on line 4, we'll use Numeric Variable #2 -- we only need two digits to display the hour -- and we don't need any decimals. Again, I'm going to use the leading zeros. Well add a colon, another numeric variable, use number 3 now, we only need two digits for the minutes, and no decimals. Another colon, and our last numeric variable for the seconds. We'll use numeric variable number 4 here. Again, he only needs two digits for the seconds, and no decimals. I forgot to add leading zeros so let's go back and do that. Let's add a few features to that. Let's leave the Units Green. We'll make the numeric variable RED. And let's make all of our time yellow. While we are at it, let's make this whole line 4 inches so it will show up a little better. And let's make sure the time I center justified. Perfect. Let's copy this formatted string to our clipboard and note that this formatted string is less than 256 characters. Over in the DoMore software we send the initial format string just like before. We use the STRPRINT instruction. We'll put that in String Long Zero because we know it can handle up to 256 characters, and we just paste our string in place. We add our termination character. An end quote and a beginning quote just like we did before. And say ok. And again, just like before, we do a STREAMOUT. We'll send it out the internal serial port. And we want to send that String Long variable we just created out that port. We only need to do that once so we'll do it on the first scan. And let's update our unit count, oh how about ten times a second. To do that we copy the string that updates the variable from the ViewMarq software -- here it is -- I just press the copy and it copies that string to the clipboard. Go back to my DoMore -- use another STRING PRINT instruction. We'll use a String Short variable because we know it is going to be less than 64 characters and paste it in. As usual we need to remember to add our opening quotes, our end quotes and don't forget to set the unit ID number to your ID. Is there any reason we can't set all the variables at the same time? This is our count, let's go ahead and copy this, and add one for the hours, minutes and seconds. The count was in string variable 1, the hours -- variable 2, Minutes were in variable 3, and seconds were in variable 4. Now all we have to do is insert our variable. This "n" is a place holder, so we are going to close down the string, put our variable that has the count in it, we used V100 in this case, and then open up the string again. Variable 2 was hours. So we close the string, we grab our hours, and open up the string again. Variable 3 is our minutes. And variable 4 was our seconds. And don't forget to add the termination character. Now we just need to send that string out to the ViewMarq with a Stream Out instruction. Again, going out the internal serial port. We're going ot send SS0, and we are done. We want this to run at 100milli seconds. And let's go ahead and increment the count every 50 milli seconds just to give us something to look at. And while we are at it, let's give ourselves a way to reset the count to zero. That's our whole project. So on the first scan, were going to format the display and send it out. Then every 100ms we are going to create a string with just variables in it and send that out. We have a 50 milli-second timer incrementing our count. And we have the ability to clear that count if we want to. Well, let's try it. Accept. Save it and write it to the PLC. And just like that we have a real time count and time showing up on our ViewMarq display. If I reach down and toggle X7, it resets my count. Perfect. And remember, all we are doing is updating the variables -- we don't have to regenerate all the formatting over and over again. The Viewmarq does all of that for us. Very cool. That ought to be enough to get you going. Please let us know if you have any questions. Automation Direct's Customer Support is always free and just a phone call or e-mail away. Spend Less Do More With Automation Direct.



No data returned!
An error has occurred! Please contact support
Videos Home > BRX Do-more PLC Using Variables with ViewMarq LED from 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