You are not registered yet. Please click here to register!

plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old November 18th, 2013, 09:09 AM   #1
Molded Products
United States

Molded Products is offline
Join Date: Nov 2013
Location: Ohio
Posts: 5
Red Lion HMI

I have a Red Lion HMI Mod. no. G310. I am currently tring to program a bar code scanner into it so that I can scan a number onto the screen. I've got that part done per Red Lion tech. note TNOI40. Now I need to take that number from the string tag and put it into an Integer tag to tell the Fanuc Robot what program to run. Any thoughts
  Reply With Quote
Old November 18th, 2013, 11:41 AM   #2
Lifetime Supporting Member + Moderator
United States

kolyur is offline
kolyur's Avatar
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,440
The TextToInt() function is what you're looking for. Syntax is described in the reference manual.

One way this could be implemented:
If your string tag is called Stringtag, create a new Numeric tag and set the Source to General. Use the expression TextToInt(Stringtag,10). The value of 10 indicates that the value will be converted as base 10.

Last edited by kolyur; November 18th, 2013 at 11:44 AM.
  Reply With Quote
Old November 18th, 2013, 11:44 AM   #3
United States

BTalbot is offline
BTalbot's Avatar
Join Date: Jul 2002
Location: New Jersey
Posts: 319
It's been a while, You may want to look in the manual for TextToInt and also the Mid instruction
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Red Lion HMI with DL405 joeboucher LIVE PLC Questions And Answers 2 November 5th, 2013 02:25 PM
HOW TO: Create a Web-Based HMI (Siemens/RedLion) haganwalker LIVE PLC Questions And Answers 9 August 6th, 2013 09:05 AM
Rslogix 500 - Red Lion G306M HMI lllboredlll LIVE PLC Questions And Answers 7 April 21st, 2012 08:25 PM
using Red Lion HMI for Video display Bunger LIVE PLC Questions And Answers 2 September 2nd, 2009 02:17 PM

All times are GMT -5. The time now is 11:45 PM.