Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Note:
I/O sizes are shown in Bytes.
5. Go online with the DeviceNet Network.
6. Highlight the Node that is reported as having the Error 77 (I/O Size).
A. Right-Click on the Menu Entry Class Instance Editor
B. Click Yes to acknowledge the Warning Message regarding the Editors usage.
We will be reading information only. We will not be writing data to the
device.
The following codes will allow us to read the Input data size:
C.
D.
E.
F.
G.
H.
Use Service Code E Get Single Attribute which is the default value.
Use 5 for the Class Code:
Use 2 for the Instance Code:
Use 7 for the Attribute Code:
Press the Execute Command Button
Record the value returned in the Data received from the device: box. This
is the polled input data size. This is input into the controllers DeviceNet
scanner.
Note:
I/O size display defaults to Byte. Data is displayed in Low Byte High Byte
format.
For example, 4 Bytes defaults to a display of 4 0
We will now read the Output size, still using E as the service Code:
I.
J.
K.
L.
M.
Note:
I/O size display defaults to Byte. Data is displayed in Low Byte High Byte
format.
For example, 4 Bytes defaults to a display of 4 0
Now you should compare the data obtained in Step 4-D with the data obtained from Step
6-H (Input Size) and Step 6-M (Output Size).
Any differences found must be reconciled by:
Changing the Scanners I/O size value to match the values obtained from the
Class Instance Editor. Go to Steps to Change the I/O Parameters in a
DeviceNet Scanner at the end of this document for more information.
or
Changing the Devices configuration by adjusting parameters in the Device.
Go to Steps to Change the I/O Parameters in a DeviceNet Node at the end of
this document for more information.
Note:
You can convert the Class Instance Editor to display this data in Word format to
eliminate the Low Byte High Byte confusion. Remember, the data values will
still always represent the number of bytes, not works, being transferred between
the Scanner and the Slave nodes.
Displaying data in Word format in the Class Instance Editor:
The above example shows the Class Instance Attribute information for a Polled Input
connection.
The table below shows the Class Instance Attribute information for all I/P connection
types; Polled, Strobed, COS/Cyclic.
Note:
Polled and COS/Cyclic use the Class 2 Instance to determine the output
connection size. Strobed I/O when used, is fixed at 8 bytes.
Even though only 1 bit will get mapped:
These are the appropriate DeviceNet Objects for the different DeviceNet Connection
Objects:
DeviceNet Object
Polled I/O Connection Object
Input (to the Scanner)
Output (to the Slave)
Strobed I/O Connection Object
Input (to the Scanner)
Output (to the Slave)
Note: The only type of
data typically sent to
Connection Object.
Polled I/P Connection
Bytes produced by the slave.
Connection Object.
Polled/COS/Cyclic O/P Connection.
Bytes consumed by the slave.
Class 5
Instance 3
Attribute 7
Class 5
Instance 3
Attribute 8
Connection Object.
Strobed I/P Connection
Bytes produced by the slave.
Connection Object.
Strobed O/P Connection.
Bytes consumed by the slave.
Value returned will always be a fixed
size of 8 Byes.
Class 5
Instance 4
Attribute 7
Class 5
Instance 2
Attribute 8
Connection Object.
COS/Cyclic I/P Connection
Bytes produced by the slave.
Connection Object.
Polled/COS/Cyclic O/P Connection.
Bytes consumed by the slave.
Class-Instance-Attribute
Value
5-27
5-37
5-47
5 - 2- 8
5-38
5-48
5-27
5-37
5-47
5-28
5-38
N/A
Actual size in bytes.
N/A
N/A
Will always return a value of 8
Bytes.
5-4-8
5-2-7
5-3-7
5-4-7
5-2-8
5-3-8
5-4-8
Where: N/A may return as a valid number or as a Comm Error #12 Object does not
exist.
The actual value that gets returned for a given Device Object depends on the device itself,
some devices support multiple connection methods (Polled/Strobed/COS/Cylic) and may
provide an appropriate DeviceNet Size Value for a connection method that is not
currently used. But, the device should reply with the correct connection size for the
connection method that is being used.