PISO-DNM100 DeviceNet Master API functions User’s Manual (Ver: 1.0) 2008/02/25
39
3.9 Flow Diagram for COS Connection
The users can read or write device's I/O data via DeviceNet COS (change-
Of-State) connection. The PISO-DNM100 provides three functions to read or
write the I/O data easily. Firstly, the users should know the device's I/O input
length (in Byte) and the output length (in Byte). Secondly, the users should set
this parameter by calling DNM100_ConfigCOS. Thirdly, the users can set the
initial output value by calling DNM100_WriteCOSOutputData before starting
the specific slave device. If the users do not initialize the output value, the
firmware default output value is 0. Fourthly, the users can start communicating
with device to read or write I/O data. If the specific slave device doesn’t have
any output channel, the firmware will start communicating with the device
automatically. The Figure 3.11 shows the main steps to achieve this function.
There are more functions described in chapter 4.
Figure 3.11 COS Connection Diagram