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   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old November 18th, 2013, 10:09 AM   #1
Molded Products
Member
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, 12:41 PM   #2
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 1,409
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.
__________________
John

Last edited by kolyur; November 18th, 2013 at 12:44 PM.
  Reply With Quote
Old November 18th, 2013, 12:44 PM   #3
BTalbot
Member
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
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


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 03:25 PM
HOW TO: Create a Web-Based HMI (Siemens/RedLion) haganwalker LIVE PLC Questions And Answers 9 August 6th, 2013 10:05 AM
Rslogix 500 - Red Lion G306M HMI lllboredlll LIVE PLC Questions And Answers 7 April 21st, 2012 09:25 PM
using Red Lion HMI for Video display Bunger LIVE PLC Questions And Answers 2 September 2nd, 2009 03:17 PM


All times are GMT -5. The time now is 01:13 PM.


.