PLC_NEWBIE

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About PLC_NEWBIE

  • Rank
    Newbie

Profile Information

  • Country Australia
  1. Convert ASCII to REAL

    Thanks for the ideas, will give them all a try. Geoff
  2. Convert ASCII to REAL

    I am writing an STL function to read data from an external device on ethernet using AG_RECV. I have the read working however the received data is all ascii which I now need to convert to a bunch of reals. The return data looks like this... 100.001 101.2 5.32 etc (Notice the varying lengths of the data - there is a CR at the end of each value) Can anyone tell me the best way to convert an array of bytes containg ascii values into a real in S7-300 STL ? Thanks Geoff
  3. Thanks aggattapauer, Here is the original logic..... -----+-----+- 402200 | |-------( )- 401700 003199 |SENS| #00006 Just to confirm... 402200 gives the bit number in the table of 6 registers starting at 401700. The status of the requested bit is written to 003199. ie. If 402200 - 32 the the status of the 16th bit in 401701 is written to 003199. I appreciate your help. Geoff
  4. Hi aggattapauer, Thank you for the reply. Whilst I understand what the SENS instruction does, my experience with FBD is extremely limited so unfortunately it is not simple for me to convert to FBD. Can you give me an example of how to do this in FBD please. Thanks Geoff
  5. Hi All, This may be a simple question however it has had me stumped for days. I am trying to copy some logic from a Modsoft program into an FBD block on a Quantum. I cannot find the SENS block anywhere in Concept (unless I create the section as 984 LL which we don't want to do). Am I doing something wrong ? Is SENS available in FBD ? As an alternative I have thought about trying to write my own SENS in a DFB however have no idea how to do this. Does anyone have some FBD code that would do this or something similar that I can learn from ? Thanks Geoff