PLC_NEWBIE

MrPLC Member
  • Content count

    5
  • Joined

  • Last visited

Posts posted by PLC_NEWBIE


  1. 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

  2. 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

  3. 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