Abstract:
The present invention is directed to facilitating communication within an automation system having a plurality of networks and network protocols. Specifically, a Modbus network is operably connected to a network. A fieldbus coupler operably connected to both networks having a program facilitates communication within the automation system wherein devices connected to the network can be accessed for monitoring and/or controlling via Modbus commands. The fieldbus coupler (FBC) program accepts a Modbus function code containing one or more embedded message of varying types. The FBC program using additional information contained in the Modbus function code and the message type reads or writes only the required information to and from the field devices. This specific read or write request of the information and the embedding of more than one message type reduces overhead and bandwidth usage, thus improving bus response time and efficiency.

Description:
TECHNICAL FIELD  
         [0001]    This invention relates generally to the field of automation networks. More specifically, the present invention relates to a method, system and computer program product for communicating Modbus messages between networks to control or monitor a network device.  
         BACKGROUND OF THE INVENTION  
         [0002]    Modbus, Profibus, DeviceNet, CANOpen and Ethernet-based networks are utilized in factory automation and related fields for communicating between data processing systems and peripheral devices. Local area networks (LAN) interconnect factory equipment and other devices such as programmable logic controllers (PLC), fieldbus couplers (FBC), industrial power monitors, e.g., any of the Quantum PLCs by Schneider Automation Inc., and computer work stations for monitoring and programming PLCs and other devices related to factory automation. The Modbus protocol is widely used for factory automation applications. The Modbus protocol is described in the “Modbus Protocol Reference Guide,” publication PI-MBUS-00 by Schneider Automation Inc. and is incorporated herein by reference. Modbus Plus is a LAN protocol for industrial control applications. Applications of the Modbus Plus protocol are described in the “MODBUS Plus Network and Installation Guide,” 890 USE 100 00 Version 3.0, Schneider Electric, April 1996, and is incorporated by reference.  
           [0003]    The Modbus protocol is well known and is described, for example, on the World Wide Web, (Web) at modicon.com/techpubs/toc7.html, and is incorporated herein by reference along with all related Web pages. Different networking schemes relating to factory automation are described in U.S. Pat. Nos. 6,151,625; 5,805,442; 5,251,302; and 5,699,350, and are also incorporated herein by reference.  
           [0004]    A Modbus frame comprises three basic parts. The first part is an address field for storing a device identifier (ID). The ID identifies the slave device to which the Modbus frame is to be sent when the message is being sent from a master device. When the frame originates at a slave device and is to be sent to a master device, the ID identifies the slave device from which the Modbus frame was sent. Thus, a master addresses a slave by placing the slave address in the address field of the message, and when the slave sends its response, the slave places its own address in the address field to inform the master which slave is responding. Further contained in the Modbus frame is a function code. The function code informs the receiving device what type of function or operation will be performed by the Modbus frame. For example, a function code, “126,” causes a subsystem of devices to start or stop depending upon function code “126&#39;s” sub-function code, i.e., 1 or 2. Yet another function code, function code “125,” reads the hardware identification to the master device. The last part of the Modbus frame includes a data field containing data pertinent to the function code in question, i.e., a CANOpen message for function code “43” in the present invention  
           [0005]    The type of CANOpen message determines the means of communication between the nodes on the CANOpen network. CANOpen is a standard and is described, for example, on the Web at can-cia.de.html, and is incorporated herein by reference along with the related web pages. A typical CANOpen network allows communication among and between many operably connected devices from different manufacturers.  
           [0006]    To communicate process data from the node-device, a Process Data Object (PDO) message is used. To communicate configuration data from and between node-devices, a Service Data Object (SDO) is used to update the node&#39;s Object Dictionary (OD). The OD contains a list of devices and what each device controls, e.g., temperature, pressure, etc. Each node is connected to one or more input/output devices that measure and control a process. Different control systems are described in U.S. Pat. Nos. 6,151,640; 6,122,686; 6,111,886; 5,978,578; 5,598,149; 5,754,548; and 5,557,545. Thus, a Modbus device on a CANOpen network must be able to read and write CANOpen messages to communicate with other CANOpen devices on the network.  
           [0007]    Although Modbus has become an industry standard, other technologies have been developed for different automation activities. Modbus is a serial communication protocol that has a limited number of nodes in a master/slave relationship. The master node is the network node issuing the Modbus frame, while the slave node is the receiver of the Modbus frame. In addition, Modbus is limited to 256 bytes in length.  
           [0008]    As the industry moves toward interoperability, that is, a seamless data transfer between data transfer protocols such as CANOpen, the number of third party devices requiring addressing increases, further increasing maintenance and complexity of network addressing schemes. CANOpen is a third party protocol that has brought enhanced performance and openness, but not without its limitations.  
           [0009]    This invention is directed to solving these and other problems.  
         SUMMARY OF THE INVENTION  
         [0010]    The present invention is directed to an automation system comprising a Modbus device having an embedded automation application. The Modbus device is connected to a communication bus. This bus protocol can transmit or receive Modbus device commands. A fieldbus coupler is operably connected to the automation application via the communication bus. A second network having its unique protocol is connected to the same fieldbus coupler. The fieldbus coupler (FBC) has among other components, a table for holding data and parameters transmitted or received throughout the automation system. A protocol utilized by the automation application and stored at the FBC or on the programmable logic controller (PLC) provides access to the second network and its attached field devices. Field devices include such devices as analog inputs or outputs, digital or binary inputs, digital or binary outputs or other special devices, etc. The field devices and devices that control these field devices, e.g., PLCs or FBCs, are networked together. Various types of network protocols such as: Interbus S, Profibus DP, Modbus, Echelon, Seriplex, CAN and CANCAL, etc., facilitate communication among these devices. (U.S. Pat. No. 5,611,059 provides various examples of devices that control field devices.)  
           [0011]    Another embodiment of the present invention is directed to a method of transmitting a CANOpen message in an automation system comprising a CANOpen network and a Modbus network. The method includes providing a CANOpen message embedded within a Modbus function code. The Modbus function code is transmitted from the Modbus network to a fieldbus coupler. The fieldbus coupler is operably connected to a CANOpen network having input and output field devices attached. The fieldbus coupler extracts from the Modbus message the CANOpen embedded therein, and transmits the embedded CANOpen message to the CANOpen field devices operably connected to the CANOpen network.  
           [0012]    A table, commonly referred to as an object dictionary (OD), is located in the fieldbus coupler and at the CANOpen field device. This table or OD contains data particular to the CANOpen devices wherein the CANOpen message embedded in the Modbus function code command, configures or commands the targeted CANOpen field device. Any response message from the CANOpen node is embedded within a Modbus function code wherein the Modbus function code is transmitted to the Modbus network via the fieldbus coupler.  
           [0013]    In an another embodiment of the present invention, the Modbus command contains a starting high and low address to select a subset of the CANOpen data returned to (read function) or sent from (write function) the FBC via the CANOpen field devices. Typically, CANOpen in response to a command delivers more information than is necessary to perform the automation control function. As a standard, CANOpen provides information in a fixed manner or fixed form. This fixed approach can result in inefficiencies, namely, a slow network response due to a crowded bandwidth. The starting address and offset of the needed control information from the field device reduces the bandwidth required, thus improving the response time.  
           [0014]    Yet in another embodiment of the present invention, multiple Modbus function code messages can be grouped together. This grouping reduces overhead information, which is part of each single Modbus message. By grouping numerous Modbus messages together, bandwidth usage is reduced and network response time is improved. In addition, a series of CANOpen commands (each Modbus message contains a CANOpen command) can be grouped together to configure a CANOpen field device immediately. This allows a field device to be configured and operating without intervening traffic to other CANOpen devices. Therefore, once the CANOpen device has established communication with the CANOpen network, the device can be ready to perform its function soon thereafter.  
           [0015]    Yet another embodiment of the present invention is directed to a medium readable by a computer. The medium provides a protocol for facilitating communication within an automation system executing an automation application. The automation system includes a Modbus network and a CANOpen network. The medium comprises a first function code having a read/write bit. The first function code is responsive to the read/write bit wherein the first function code reads or writes an object dictionary of a CANOpen device. The medium comprises a second function code wherein multiple function codes, e.g., the first function code, can be embedded within the second function code.  
           [0016]    Other advantages and aspects of the present invention will become apparent upon reading the following description of the drawings and detailed description of the invention. 
       
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS  
       [0017]    [0017]FIG. 1 is a block diagram of an exemplary automation system of one embodiment of the present invention;  
         [0018]    [0018]FIG. 2A is an illustration of a message frame configured in accordance with one embodiment of the present invention;  
         [0019]    [0019]FIG. 2B is an illustration of a Modbus message, function code “43,” configured in accordance with an embodiment of the present invention;  
         [0020]    [0020]FIG. 2C is a partial illustration of a Modbus message, function code “41,” configured in accordance with an embodiment of the present invention;  
         [0021]    [0021]FIG. 2D is an illustration of a Modbus message, function code “41,” configured in accordance with an embodiment of the present invention;  
         [0022]    [0022]FIG. 3 is a flowchart of one embodiment of the present invention depicting the management of a Modbus message; and,  
         [0023]    [0023]FIG. 4 is a table showing a partial summary of Modbus commands supported by one embodiment of the present invention. 
     
    
     DETAILED DESCRIPTION  
       [0024]    Although this invention is susceptible to embodiments of many different forms, a preferred embodiment will be described and illustrated in detail herein. The present disclosure exemplifies the principles of the invention and is not to be considered a limit to the broader aspects of the invention to the particular embodiment as described.  
         [0025]    A Controller Area Network (CAN) is a protocol for serial communications between devices generally used in automation environments. CANOpen is a protocol built on top of the CAN protocol. CANOpen specifies methods to describe messages exchanged between nodes on a CANOpen network. Modbus is another network protocol standard used in automation environments. The present invention is directed to providing a system, method and computer program for facilitating communication between nodes residing on these and other networks.  
         [0026]    Referring to FIG. 1, an automation system  2  is depicted comprising a Modbus network  4  and a CANOpen network  6 . CANOpen devices  8 , e.g., IO modules, are operably connected to the CANOpen network  6 . The devices  8  and other devices on other networks such as DeviceNet, Profibus, and Ethernet are collectively called objects. A fieldbus coupler (FBC)  10  couples the CANOpen network  6  with the Modbus network  4 . Other networks implementing other protocols can also be attached to the FBC  10 .  
         [0027]    The automation system  2  comprises an automation controller  12 , the FBC  10  and one or more CANOpen nodes or devices  8 , i.e., FBCs, IO modules, controllers, etc. The automation controller  12 , e.g., Modbus device, includes an automation application  14 , a Modbus communications driver  16  and a physical layer transceiver  18 . The automation application  14  communicates with CANOpen devices  8  elsewhere in the system  2 , and has access to a Modbus network  4 . The Modbus communications driver  16  is accessible to the automation application  14 . The physical layer transceiver  18  is connected to the Modbus driver  16 .  
         [0028]    The FBC  10  comprises an interface to the automation system  2 . The protocol of the automation system  2  can be of any type. One embodiment of the present invention is directed to an automation system  2  implementing Modbus and CANOpen protocols. Also included in the FBC  10  is a fieldbus driver  19  operably connected to a CANOpen communications driver  20 . The CANOpen communications driver  20  is connected to a table  22 . The table  22  is a collection of indexed entries that define the objects in the automation system  2 . Preferably, the table  22  is a CANOpen object dictionary (OD). The table  22 , herein called an OD, is a collection of all the data items that have an influence on the behavior of the application objects, the communication objects and the state machine of the FBC  10 . The OD  22  includes different data types, profile areas, etc., and essentially is a grouping of objects accessible via the network in an ordered, pre-defined fashion closely conforming with other industrial serial bus systems. A CANOpen transceiver  24  is used to send and receive CANOpen messages via the CAN physical layer. Software within the FBC  10 , i.e., a Modbus-to-CANOpen bridge  26 , accepts messages in Modbus format and converts them for use by the CANOpen driver  20 . This FBC  10  program receives a Modbus function code  40 , unpacks the embedded CANOpen message, sends the CANOpen message, and then re-packs the CANOpen device response into a Modbus message to the automation application  14 . A physical layer transceiver  27  accessible to the Modbus-to-CANOpen bridge  26  is operably connected to a Modbus communication bus  28 , which transmits the Modbus message to the automation application  14 .  
         [0029]    One or more CANOpen devices  8  can be operably connected to the automation system  2 . The CANOpen device  8  comprises a field application program  30  that actively controls sensors or actuators connected to the device. A CANOpen transceiver  32  operably connected to a CANOpen communication bus  38  is used to send and receive messages via the CAN physical layer. A CANOpen communications driver  34  and its associated table  36 , preferably an object dictionary (OD), are operably connected between the field application  30  and the CANOpen transceiver  32 .  
         [0030]    There are two primary means of communication between nodes on a CANOpen network  6 : Process Data Objects (PDOs) and Service Data Objects (SDOs). PDOs are used to transmit data from the system that is under the control of the devices  8  on the CANOpen network  6 , e.g., temperature or pressures values, parts count, etc. SDOs are used to exchange data between the nodes  8  themselves, e.g., the input range to be expected by a module, the preset value of a counter, scaling constants, etc. The data that is managed by the nodes  8  (as opposed to being produced by the controlled process) is stored at and retrieved from the nodes&#39; OD  36 .  
         [0031]    An object of the present invention is to provide a protocol to be utilized with the automation application  14  running in the Modbus device  12  to query or make changes to the ODs of any other device in the system  2 . Preferably, the present invention provides for the transmission of a CANOpen message over a Modbus network. It is to be understood that the present invention is not limited to networks and devices discussed in the preferred embodiment and that the present invention is also applicable with various other networks implemented on the non-Modbus side of the FBC  10  or other types of Modbus networks.  
         [0032]    For a Modbus device  12  to be able to configure CANOpen devices  8 , it must be able to read and write the ODs  22 ,  36  of the fieldbus coupler  10  and of the CANOpen devices  8 . This specification describes a system and protocol for accomplishing this task. Furthermore, by collecting process data and storing it in the OD of one or more of the nodes, the process data can also be written or read via Modbus. The information needed to query or modify the ODs  36  in the CANOpen network  6  is mapped into the format of transmitted Modbus messages.  
         [0033]    A new Modbus function code  40 , i.e., function code “43,” is used to read or write to the OD. FIG. 2B. This function code  40  will work with existing Modbus networks. Each function code is encapsulated in a Modbus frame  42 , comprising a header (primarily the address of the Modbus node to receive the message, i.e., Modbus slave device such as the FBC  10 ), and a trailer (an LRC or CRC to verify message integrity). FIG. 2A. The Modbus frame  42  includes a device ID  44  of the receiving device and a function code  40 , i.e. Modbus command. Data  46  contains information about the CANOpen message, the destination of the CANOpen message, and the CANOpen message within the OD  36  of the CANOpen device  8 .  
         [0034]    The new Modbus function code “43” allows the reading or writing of the network devices. The code  10  applies to both the Modbus Request and the Modbus Response messages. See Tables 1-3. A Modbus request message is a message to a Modbus slave device such as the FBC  10 . A Modbus response message is the message returned from the Modbus slave device to the device sending the original Modbus request message or master device such as a programmable computer  100  within the automation application  14 . The programmable computer  100  can be an industrial computer or a programmable logic controller that stores Modbus Request messages and executes these request messages as part of the automation application  14 . This new code will support standard Modbus reference types. The Request message shown below only references the query for reference type  13  CANOpen OD reference. FIG. 4 lists a partial summary of supported Modbus commands.  
                         TABLE 1                           Request Message            Byte number   Original request for standard register access                0   Device ID (44)        1   Function code = 2B hex        2   Reference Type for OD this will be 13 or (0D hex)        3   Read/Write Flag (bit 0 = 0 read bit 0 = 1 write) extend bit           also included in this byte see note below.        4   Node ID.        5   Index High        6   Index low        7   Sub-Index        8   Starting Address High to Read/Write        9   SAtarting Address Low to Read/Write       10   Number of bytes High to Read/Write       11   Number of Bytes Low to Read/Write       12. . .n   Read/Write Data       N + 1, 2   Error Check (LRC or CRC)                  
 
         [0035]    NOTE: Byte  2 , bit  7  (the EXTEND bit) can indicate, if set, that this is a portion of a multiple message transaction. The data provided should be buffered by the receiver and not placed into the OD until a message arrives for this node/index/sub-index with the EXTEND bit clear.  
                         TABLE 2                           Normal Response Message            Byte number   Original request for standard register access                0   Device ID (44)        1   Function code = 2B hex        2   Reference Type for OD this will be 13 of (0D hex)        3   Read/Write Flag (bit 0 = 0 read bit 0 = 1 write) extend bit           also included in this byte see note below.        4   Node I.D.        5   Index High        6   Index low        7   Sub-Index        8   Starting Address High Read/Write        9   Starting Address Low Read/Write       10   Number of bytes High Read/Write       11   Number of Bytes Low Read/Write       12 . . . N   Read/Write Data       N + 1, 2   Error Check LRC or CRC)                  
 
         [0036]    [0036]                         TABLE 3                           Exception Response            Byte number   Value               0   Function Code 2B Hex + 80 Hex (indicates error)       1   Exception code       2   Sub Exception code       3, 4   Error Check (LRC or CRC)                    
         [0037]    The function code “43” allows a direct read and write by a Modbus device  12  into any CANOpen node&#39;s OD  36 , at any offset, within any index and sub-index, without regard to the previous history of commands between the devices. The index is a location of an object within the OD  36  of a CANOpen device. The sub-index is a sub-location within the index. Specifically, function code “43” provides for a read/write to a CANOpen index/sub-index of a node  8 . Each location in a CANOpen node  8  has a predefined byte size. The starting address offset and number of bytes defines the portion containing data being sought. Efficiency in the communication bus traffic is increased because less bandwidth is utilized since an entire block of data does not need to be read/written.  
         [0038]    Referring to FIG. 2B, the function code  40  comprises an address field for storing a network slave device identifier  72 . The slave ID  72  identifies the slave device to which the Modbus frame is to be sent when the message is being sent from a master device. When the frame originates at a slave device and is to be sent to a master device, the slave ID  72  identifies the slave device from which the Modbus frame was sent. Thus, the master addresses the slave by placing the slave address indentifier  72  in the address field of the message, and when the slave sends its response, the slave places its own address in the address field to inform the master which slave is responding. The reference type  50  indicates that the data to follow will be a CANOpen read or write. The reference type  50  can change to accommodate the various CANOpen message types, or expand to accommodate other industrial networks. The read/write extend byte  52  indicates specifically whether it is a read or write CANOpen message contained within this data field. The extend byte  52  furthers serves the purpose of indicating whether this Modbus inquiry or response will require a Modbus message over 256 bytes. The Node ID  54  indicates the destination node (CANOpen device  8  ), i.e., OD entry, on the CANOpen network  6  to be read or written with the data contained in the Modbus message. The Index High  56  and Low  58  and Sub-Index  60  indicate the OD or target destination from which the reading and writing will occur.  
         [0039]    The Starting Address High byte  62  and Starting Address Low byte  64 , together are the 16 bit offset, to begin the read or write within the OD  22 ,  36 . The Number High  66  and Low  68  Bytes indicate the number of bytes to read or write from the OD of any Modbus slave device on the network (e.g. a CANOpen device  8  ). The Starting High  62  and Low  64  addresses and the Number High  66  and Low  68  bytes, together, define the portion of the OD to access. The Read/Write Data is the data to be read or written into the OD index  56 ,  58  and Sub-Index  60 .  
         [0040]    Furthermore, there is a method (the EXTEND bit) for the Modbus device  12  to indicate whether a transmission will be followed by another, and that the current data transmitted should be buffered (outside the OD) until all segments have been transferred. If the data for the OD entry cannot fit in a single Modbus message  42 , the transaction must be indicated as an EXTENDed transaction by setting the high bit of the byte containing the requested byte count to write.  
         [0041]    There are two typical cases. The first case is where the data is small enough to fit into one Modbus message  42 . In this case, the offset is zero and the EXTEND flag is also zero. The entire data is transferred to the FBC  10  in one message, and replaces the data in the existing OD entry. The other case is where the data is too large to fit into a single Modbus message  42 . In this case, the first message is also started with an offset equal to 0; the data is provided and the EXTEND flag is set to 1. The new data is not written into the OD. The second message (and possibly additional message) contains additional data for the OD entry. The message that contains the last byte to be written to the OD entry will have its EXTEND bit clear (equal to 0). In general, the EXTEND bit equal to 0 indicates that writing is complete and all data received should be put to use in the OD. Until a message is received with EXTEND equal to 0, the data must be buffered and not placed actively into the OD entry.  
         [0042]    Transaction types are not required to be identical. However, any CANOpen transaction type will abort any previous CANOpen EXTENDed write transaction in progress. This is not considered an error.  
         [0043]    Another new Modbus command  140 , function code “41,” is capable of performing multiple function codes  40 . FIG. 2C. (The last two digits of the elements in FIGS. 2C and 2D correspond to the similar elements identified by the same last two digits in FIG. 2B.) This command is setup to handle any multiple Modbus function codes  40  in one transmission and applies to both the Request and the Response messages. See Tables 4-6. Function code “41” allows a user to embed multiple Modbus function codes  40  into itself. The embedded function codes reduce overhead because an individual header and footer in not required for each embedded function code contained in a single function code “41” command. One error check is required for the function code “41,” rather than multiple error checks (decreasing overhead or bandwidth) for each single Modbus function code. See FIG. 2D.  
                                   TABLE 4                           Request Message            Byte number   Original request for standard register access                    0   Function code = 29 hex       1   Reserved Byte must be equal to 00       2   First Function Code       3 . . . N   Next Bytes are identical to the Function Code request.       N + 1   Next Function Code       N + 1 . . . M   Next Bytes are identical to the Function Code requested.       M + 1, 2   Error Check (LRC or CRC)                  
 
         [0044]    [0044]                         TABLE 5                           Normal Response Message            Byte number   Original request for standard register access       0   Function code = 29 hex       1   First Function Code       2 . . . N   Next Bytes are identical to the Normal Function Code re-           quested.       N + 1   Next Function Code       N + 2 . . . M   Next Bytes are identical to the Normal Function Code re-           quested.       M + 1, 2   Error Check LRC or CRC)                    
         [0045]    [0045]                         TABLE 6                           Exception Response Message            Byte number   Value               0   Function Code 29 Hex + 80 Hex (indicates error)       1   First Function Code (See note below)       2 . . . N   Next Bytes are identical to the Normal Function Code re-           quested.       N + 1   Next Function Code if in error will have 80 added to Func-           tion Code       N + 2 . . . M   Function Code specific exception responses.       M + 1, 2   Error Check (LRC or CRC)                    
         [0046]    NOTE: The Exception Response message will be used when an error of a function code inside of the multiple function code packet has an error. The multiple function code will be executed until an error has been encountered. This will stop the processing and invoke the exception response. All function codes before the error will be evaluated and the Exception Response will contain a normal Response for these function codes. This will be followed by the Exception Response for the function code in error. All function codes that follow the error will not be performed.  
         [0047]    If the returned data does not contain the last byte of the data in the OD, the EXTEND bit will be set in the Modbus response. Getting back less data than requested is not an error if the EXTEND bit is clear; it merely indicates that the last section of data from the OD has been read  
         [0048]    Now, referring again to FIG. 1, an example of a communication process of one embodiment of the present invention is discussed. A READ function is initiated from a Modbus tool, i.e., programmable computer  100 , for reading data from a FBC  10 . The READ is a request message or SDO CANOpen message type. The FBC  10  receives the READ from the programmable computer  100  in Modbus format and sends the CANOpen SDO request out over the CANOpen communication bus  38  to the specified device identified by its Node ID  54  and its associated addressing Indices  56 ,  58  and its Sub-Index  60 . The CANOpen device  8  attains all the data found at its Indices and Sub-Index. The FBC  10  receives the data and then sends a RESPONSE to the requesting device  100 , the RESPONSE is the answer to the READ. The information returned with the RESPONSE is at a Starting High  62  and Low  64  address and the Number High  66  and Low  68  bytes. The protocol is written so that requests can be made randomly into any part of any node&#39;s OD. Thus, the present invention reduces bus traffic and improves response time from and to the devices within the automation system.  
         [0049]    A WRITE function is a similar process between the programmable computer  100  to the FBC  10 . The function code “43” is sent to the FBC  10 , but having the read/write bit  52  set to Write. The Indices  56 ,  58  and Sub-Index  60  identify the OD  36  location within the CANOpen device  8  identified by the Node ID  54 . The FBC utilizes the Starting High  62  and Low  64  addresses and Number High  66  and Low bytes  68  along with the Read/Write Data  70  to formulate and transmit a CANOpen message out to the network.  
         [0050]    [0050]FIG. 3 outlines the management of a network message of one embodiment of the present invention and it is to be understood that the present invention is not limited to this description. In step  302 , the FBC  10  receives the bytes of an incoming network message, preferably a Modbus function code  40 . As each byte is received, the FBC  10  stores the information in temporary memory. Once the message has been received, the FBC  10  program in step  304  utilizes the error check  74  to determine if a correct number of bits have been received at the slave device  8  or FBC  10 . In addition, the FBC  10  program verifies that the Modbus function code  42  is supported.  
         [0051]    After verification of the Modbus function code  42  by the FBC  10  program, the same FBC  10  program verifies the correctness of the received Modbus function code  40 . Step  306 . The FBC  10  program determines if the addressing received is correct and guarantees the lengths requested do not exceed addressing limits. If there is an error, the FBC  10  program sends an error response to the automation application  14  indicating that the Modbus function code  40  has been received with an error. The automation application  14  will determine whether to re-transmit or ignore. There is no “time out” feature, e.g., the FBC  10 ; the CANOpen device  8  via the FBC  10 ; or notification by the automation application  14  to a slave device  8  or FBC  10  of a required response time; at a slave device. Standard Modbus protocol implements an immediate response from a slave device. The automation application  14  will assume the message has been received, validated and processed.  
         [0052]    In step  308 , the FBC  10  program executes the Modbus function code  40  received. As discussed above, Modbus function codes “41” and “43” can have more than one CANOpen message or just one CANOpen message embedded in the Modbus function code, respectively. For Modbus function code “43,” the FBC  10  program sends the embedded CANOpen message via the Modbus to the CANOpen bridge  26  along with the various Modbus control fields  52 - 68  to the CANOpen driver  20  for execution. In step  310 , the FBC  10  program executes the embedded CANOpen message via the CANOpen driver  20  through the CAN transceiver  24  onto the CANOpen network  38 . Once the FBC  10  program in Step  310  executes the CANOpen message, the CANOpen network protocol has control until the information is returned to the FBC  10  or the CANOpen device  8  notifies the FBC  10  that the message is complete.  
         [0053]    While the specific embodiments have been illustrated and described, numerous modifications come to mind without significantly departing from the spirit of the invention and the scope of protection is only limited by the scope of the accompanying claims.