adccommunitymod (AutomationDirect) asked a question.

CoPro memory usage

Created Date: October 05,2007

Created By: stevewr

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I need to build a copro program to recieve data from a bar code scanner via rs232 to the copro. Where does this data go and how do i send it to the PLC?


  • adccommunitymod (AutomationDirect)

    Created Date: October 05,2007

    Created by: FACTSTech

    Typically you input the bar code scanner data into a string variable in the CoProcessor using the INPUT statement. Then you parse the data out of the string that you are interested in (using MID$ and VAL typically) and write it to V-memory in the PLC using the BMOVE or S06_, S205_, S405_ depending on which CoProcessor you are using.

    There are some examples showing how to input serial data to a string, parse numeric data from the string, and write numeric data to the PLC at www.facts-eng.com (select 'BASIC Examples ' then 'serial Communication Examples ').

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: October 05,2007

    Created by: stevewr

    Thank you for the quick responce. will look up the tech info you suggested.

  • adccommunitymod (AutomationDirect)

    Created Date: October 05,2007

    Created by: stevewr

    I need to build a copro program to recieve data from a bar code scanner via rs232 to the copro. Where does this data go and how do i send it to the PLC?