Don't use the Modicon Integrator.

Use the Modicon Foreign Device Integrator. It can handle strings. It can
also handle "Modicon-like" devices that have other non-Modbus data types,
e.g., 32-bit floating point.


Regards,


Alex Johnson
10707 Haddington
Houston, TX 77043
713.722.2859 (office)
713.722.2700 (switchboard)
713.932.0222 (fax)
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


        -----Original Message-----
        From:   Loupe, Rory (RJ) [SMTP:[EMAIL PROTECTED]]
        Sent:   Monday, April 23, 2001 3:07 PM
        To:     'Foxboro - Cassandra'
        Subject:        ASCII Characters in 16 bit registers

        List,
        I will be using an Integrator 30 (Modbus) to communicate to an
external
        device.  All of the data is packed in 16 bit registers as unsigned
16 bit
        integers.  Since I can scale this value to obtain a floating point
number
        this does not pose a problem for number values.  The problem is that
an
        ASCII string of text is packed two 8 bit characters per 16 bit
register and
        this is the only way the device will transmit ASCII strings.

        The only solution I can come up with is to receive the 2 character
16 bit
        register into an AIN block.  Then feed the AIN into a CALC and mask
out each
        character into it's own Integer Output.  Then take the two Integer
Outputs
        from the calc block and feed them into an Independent block.  Then
        concatenate the two integer values into a strings.

        This does not seem like a very elegant solution.  Does anyone know
of a
        better way to accomplish this task?

        Thanks,
                Rory Loupe
                        The Dow Chemical Company
                        LHC-3
                        P.O. Box 150, Building 6801
                        Plaquemine, LA 70765-0150 USA
                        Phone: 225.353-6409  Fax: 225.353.6968
                       E-mail: [EMAIL PROTECTED]



        
-----------------------------------------------------------------------
        This list is neither sponsored nor endorsed by the Foxboro Company.
All 
        postings from this list are the work of list subscribers and no
warranty 
        is made or implied as to the accuracy of any information
disseminated 
        through this medium. By subscribing to this list you agree to hold
the 
        list sponsor(s) blameless for any and all mishaps which might occur
due to 
        your application of information received from this mailing list.

        To be removed from this list, send mail to 
        [EMAIL PROTECTED] 
        with "unsubscribe foxboro" in the Subject. Or, send any mail to
        [EMAIL PROTECTED]

-----------------------------------------------------------------------
This list is neither sponsored nor endorsed by the Foxboro Company. All 
postings from this list are the work of list subscribers and no warranty 
is made or implied as to the accuracy of any information disseminated 
through this medium. By subscribing to this list you agree to hold the 
list sponsor(s) blameless for any and all mishaps which might occur due to 
your application of information received from this mailing list.

To be removed from this list, send mail to 
[EMAIL PROTECTED] 
with "unsubscribe foxboro" in the Subject. Or, send any mail to
[EMAIL PROTECTED]

Reply via email to