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 January 4th, 2018, 07:35 PM   #1
bill4807
Member
United States

bill4807 is offline
 
Join Date: Mar 2013
Location: michigan
Posts: 85
Numeric data vs string

Hi everybody,

May be a generic question for you advanced programmers, but I do not know how to break it down any further.
When any of you are moving or copying numeric data from PLC to HMI are you using numeric (INT or DINT) or do you mostly just use string files?

Some examples i deal with mostly are, cycle counters, MDIs, (where operator sets a number and the machine makes a descision based on that number. ) numeric part numbers, etc..

I am basically usING counters, moves and copies to set data clear data and transfer data.

Thanks alot!
  Reply With Quote
Old January 4th, 2018, 07:51 PM   #2
Steve Bailey
Lifetime Supporting Member + Moderator
United States

Steve Bailey is offline
 
Steve Bailey's Avatar
 
Join Date: Apr 2002
Location: The boondocks of Western Massachusetts USA
Posts: 6,541
I can transfer a pretty wide range of numeric data with 4 bytes. In that same 4 bytes I can transfer four characters of string data. If the string is supposed to be a number, 8 bytes limits me to 10000 possible integer values (0 - 9999) or 1000 possible values if one of those bytes represents a decimal point.
Bottom line, transfer strings when you must, transfer numeric data when you can.
  Reply With Quote
Old January 4th, 2018, 09:50 PM   #3
bill4807
Member
United States

bill4807 is offline
 
Join Date: Mar 2013
Location: michigan
Posts: 85
Thanks Steve.
I will keep on line with.
"Transfer strings when you must, transfer numeric data when you can"
This was the guidance I was looking for.
  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
ControlLogix 3rd Party eds files AutomationPrimer LIVE PLC Questions And Answers 8 March 19th, 2015 08:18 AM
Writing a string value without clearing the previous data?? davatv223 LIVE PLC Questions And Answers 9 February 23rd, 2013 03:03 AM
String misbehave ! manmeetvirdi LIVE PLC Questions And Answers 7 December 7th, 2009 10:54 PM
Extracting Tag Values from ControlLogix MajorFault LIVE PLC Questions And Answers 8 July 9th, 2009 10:22 AM
How to retain String Input data (memory tag) in RSView32? flyers LIVE PLC Questions And Answers 4 April 6th, 2008 01:01 PM


All times are GMT -5. The time now is 01:15 AM.


.