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 March 27th, 2017, 11:27 AM   #1
jrsnydley
Member
United States

jrsnydley is offline
 
Join Date: Dec 2014
Location: Minnesota
Posts: 115
Tag Editor Scaling in Connected Components Workbench

I have a 2711R-T4T that I am hooking up to a MicroLogix 1400 to replace a PanelView Micro 300. There is a tag I am trying to configure in Connected Components Workbench for the HMI. In the old PanelView, the tag is configured as follows:
Tag Name: Yield
Data Type: Signed Integer/Int
Address: N17:110
Scale: 0.001
Min: 0
Max: 32

In the tag editor for CCW, the tag is configured as follows:

Tag Name: Yield
Data Type: 16 Bit Integer
Address: N17:110
Data Entry Min: 0
Data Entry Max: 32
Scaling: ✓
Raw Min: 0
Raw Max: 32
Scaled Min: 0
Scaled Max: 32000

It appears that the numeric entry works correctly but I have the same tag (Yield) used as the Indicator Tag and the value that is displayed is not the same as what is displayed on the original PanelView. It appears to be rounding the value up to the nearest whole number. I have the Numeric Entry formatted as follows:

Decimal Point: Fixed Position
Group Separator: Use Language Preference
Keypad Type: Numeric
Maximum Value: 999
Minimum Value: 0
Negative Number Formats: In Front
Number of Decimal Places: 3
Numeric Field Width: 5

Is there a way I can get this indicator to read as it did on the old PanelView? For example, read 1.234 instead of 1?
  Reply With Quote
Old March 27th, 2017, 01:01 PM   #2
gclshortt
Member
Canada

gclshortt is offline
 
gclshortt's Avatar
 
Join Date: Dec 2014
Location: Cobourg
Posts: 2,525
"In the tag editor for CCW, the tag is configured as follows:

Tag Name: Yield
Data Type: 16 Bit Integer
Address: N17:110 "

You have a data type of Integer. Try a Real data type.
This may help you out.

Regards,
__________________
Garry
http://www.accautomation.ca
Connect with us on Facebook: facebook.com/accautomation/
  Reply With Quote
Old March 27th, 2017, 01:14 PM   #3
jrsnydley
Member
United States

jrsnydley is offline
 
Join Date: Dec 2014
Location: Minnesota
Posts: 115
Thank you for the response! However, that approach did not seem to help. It gives me a warning saying there is an inconsistency with the data type which I ignored, but the indicator tags still do not read any decimal places.
  Reply With Quote
Old March 27th, 2017, 02:07 PM   #4
gclshortt
Member
Canada

gclshortt is offline
 
gclshortt's Avatar
 
Join Date: Dec 2014
Location: Cobourg
Posts: 2,525
What about a DINT or INT signed integer?

The tag must be addressed the same way at each end.

CCW supports the 19 elementary IEC 61131-3 data types below.
• BOOL: Boolean, True or False
• SINT: 8-bit signed integer, range -128 to +127
• USINT: 8-bit unsigned integer, range 0 to 255
• BYTE: 8-bit unsigned integer, range 0 to 255
• INT: 16-bit signed integers, range -32768 to 32767
• UINT: 16-bit unsigned integers, range 0 to 65535
• WORD: 16-bit unsigned integers, range 0 to 65535
• DINT: 32-bit signed integers, range -2147483648 to +2147483647
• UDINT: 32-bit signed integers, range 0 to 4294967295
• DWORD: 32-bit signed integers, range 0 to 4294967295
• LINT: 64-bit signed integers, range -9223372036854775808 to 9223372036854775807
• ULINT: 64-bit unsigned integers, range 0 to 18446744073709551615
• LWORD: 64-bit unsigned integers, range 0 to 18446744073709551615
• REAL: 32-bit floating values, range -3.40282347E+38 to 3.40282347E+38
• LREAL: 64-bit floating values, range -1.7976931348623157E+308 to 1.7976931348623157E+308
• TIME: 32-bit words, range 0 to 1193h2m47s294ms
• DATE: 32-bit words, range 1970-01-01 to 2038-01-18
• STRING: Up to 252 characters, can contain ASCII codes from 0 to 255

Regards,
__________________
Garry
http://www.accautomation.ca
Connect with us on Facebook: facebook.com/accautomation/
  Reply With Quote
Old March 28th, 2017, 06:13 AM   #5
jrsnydley
Member
United States

jrsnydley is offline
 
Join Date: Dec 2014
Location: Minnesota
Posts: 115
I believe that the 16 bit integer is the same as a signed integer isn't it? The only other option I have for a 16 bit is an unsigned integer. As I said, the data entry appears to give me what I want due to the scaling but the indicator tag for the numeric entry isn't showing any decimal places.
  Reply With Quote
Old March 28th, 2017, 07:21 AM   #6
mike_dr
Member
Yemen

mike_dr is offline
 
Join Date: Sep 2011
Location: Mla
Posts: 204
try increasing 5 field widthto 6. or try a new numeric display tag like gcl said. try moving to dint?
  Reply With Quote
Old March 28th, 2017, 07:40 AM   #7
jrsnydley
Member
United States

jrsnydley is offline
 
Join Date: Dec 2014
Location: Minnesota
Posts: 115
I have a 14 different numeric entries all tied to N7:110 to N7:123 through tags in the project in CCW. These were all pre-exisiting in a PanelBuilder 32 application. If I configure these as DINT tags won't that screw things up? I guess what I'm really wondering is if they can be configured as a Signed Integer in PanelBuilder, why does it act differently in CCW when I configure everything to be the same as it was?
  Reply With Quote
Old March 28th, 2017, 08:23 AM   #8
jrsnydley
Member
United States

jrsnydley is offline
 
Join Date: Dec 2014
Location: Minnesota
Posts: 115
Let me try to explain myself a little better. The operator, for example, will put in a value of 3.750 into the numeric entry. With the scaling, this shows up as 3750 in the MicroLogix. However, on the display for the current value of the tag, it shows a 4 because it won't display any decimal places and rounds the 3.750 up to 4. Is there a way I can get it to display the decimals so that the operator's input matches what is displayed on the screen?
  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
AB Micro800 and Connected Components Workbench programming question PLCDontUQuitOnMe LIVE PLC Questions And Answers 16 April 26th, 2017 06:02 PM
Connected Components Workbench Slow twocozz LIVE PLC Questions And Answers 3 December 1st, 2016 03:10 PM
Connected Components Workbench MarkNightingale LIVE PLC Questions And Answers 19 October 3rd, 2016 09:02 PM
Connected Components Workbench (CCW) and Allen Bradley Micro810 thesandbox LIVE PLC Questions And Answers 0 May 6th, 2012 12:47 PM
Connected Components Workbench Project ceilingwalker LIVE PLC Questions And Answers 0 April 4th, 2012 04:18 PM


All times are GMT -5. The time now is 10:08 PM.


.