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 May 7th, 2011, 01:09 AM   #1
fhervrylesestoso
Member
Philippines

fhervrylesestoso is offline
 
fhervrylesestoso's Avatar
 
Join Date: Apr 2011
Location: Valenzuela City, NCR, Philippines
Posts: 231
Math function problem ge fanuc 90 30

GOOD DAY:

we have problems regarding math functions DIV INT dont do any calculations, all parameters are met.

we do it like this:

from function block "CSS1"
we get the variables "SET_SPEED_K8" (%R00708)(word)
then we use it on the DIV_INT as dividend.
8260 as divisor.

at start "SET_SPEED_K8" has a value of 15000
so we expect to have a quotient of 1 (since this is in INT form)
but there is no qoutient at all.

we also try to convert it from INT to REAL then use DIV_REAL but still nothing happened..

the variables "SET_SPEED_K8" are originally from CSS1 LD block.,
the math functions wherein SET_SPEED_K8 were used are located in "CSS2" a new LD block.. does math function requires it input to be in same LD block?? thank you.

thanks!!!
  Reply With Quote
Old May 7th, 2011, 06:58 AM   #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: 4,658
It sounds to me like the CSS2 block isn't being called.
  Reply With Quote
Old May 8th, 2011, 12:01 AM   #3
fhervrylesestoso
Member
Philippines

fhervrylesestoso is offline
 
fhervrylesestoso's Avatar
 
Join Date: Apr 2011
Location: Valenzuela City, NCR, Philippines
Posts: 231
OK ill check that sir,
Thought that it was just a validate-then-download program...
  Reply With Quote
Old May 8th, 2011, 07:05 AM   #4
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: 4,658
Somewhere in your program, usually in the _MAIN block, you need to include a CALL instruction to your CSS2 block. Do a search for the CALL instruction to the CSS1 block and CALL the CSS2 block right after it.
  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
GE Fanuc 90/30 Output problem CDS123 LIVE PLC Questions And Answers 4 March 1st, 2010 08:09 AM
Ge fanuc CMM 311 communication problem?? abhilashponoli LIVE PLC Questions And Answers 7 March 25th, 2004 03:00 PM
GE Fanuc HMI Development Phil Bugg LIVE PLC Questions And Answers 2 December 11th, 2003 09:58 AM
GE Fanuc PLC Axis Module Problem ManiDuraiswamy LIVE PLC Questions And Answers 1 September 16th, 2003 07:54 AM
Fanuc Robot Problem cdlove23 LIVE PLC Questions And Answers 13 August 16th, 2002 09:09 PM


All times are GMT -5. The time now is 04:19 AM.


.