Industry Online Support
Technical Forum
9/13/2010 10:24 AM | |
Joined: 10/7/2005 Last visit: 10/1/2023 Posts: 2989 Rating:
|
Hello MickMars first of all welcome to the Forum, let's see if we can make your first visit a succesful one: The FB's you listed are part of an S5Floating-Point Arithmetic software library and were used to overcome the lack of inbuilt Floating-Point Arithmetic incertain S5 CPU's (e.g. 941-944 115U CPU). It seems that there is no dedicated English manual for them (well I couldn't quickly find one anyhow), but they are quite simple and here's the brief functionality: GP:FPGP (FB15): Converta 32 bitInteger (DINT) to aFloating point number (REAL) GP:DIV (FB 20): Divide two floating point numbers GP:GPFP (FB16): Converta Floating pointnumber (REAL) to a 32 bitInteger (DINT) If you haveStep 7 you'll actually find their S7 counterpart Block in the S5 to S7 conversion library and can use the <F1> context sensitive help on itthem to get a more detailed description (see also HERE for which S5 FBis which FC inS7). jklmalso provided a nice explanation in THIS thread which may interest you. As for your last question: L FY 190 C DB 8 T DR 2<==== What does this command do? This takes the value of Flagbyte 190 (FY 190) and copies it into bits 0-7 of DW 2 in DB8. "DR"means "Data Right" (low byte ofData Word), whereas "DL" means "Data Left" (high byte ofData Word). I hope this helps |
Cheers |
|
This contribution was helpful to
2 thankful Users |
Follow us on