
BRONKHORST®
Page20DeviceNetinterface 9.17.026
Furthermore,with theuse of theData‐type attribute(0x03) and Data‐unit attribute(0x04) of the Sensorobject 0x31
and the Controller object 0x33 the user can select one of the following settings for both Explicit and Polled I/O
messages (see paragraph 3.2.2 for a complete list of supported data‐units, the
settings below are just a few
examples):
Example1(ClassId:0x31,Data‐type:0xC3,Data‐unit:0x010x10): SignedIntegerCountIndicated‐flow.
Example2(ClassId:0x31,Data‐type:0xC3,Data‐unit:0x000x14): SignedIntegerSCCM Indicated‐flow.
Example3(ClassId:0x31,Data‐type:0xCA,Data‐unit:0x010x10): Single‐precisionfloating‐pointCountIndicated‐
flow.
Example4(ClassId:0x31,Data‐type:0xCA,Data‐unit:0x000x14): Single‐precisionfloating‐pointSCCMIndicated‐flow.
Example5(ClassId:0x33,Data‐type:0xC3,Data‐unit:0x010x10): SignedIntegerCountSetpoint.
Example6(ClassId:0x33,Data‐type:0xC3,Data‐unit:0x000x14): SignedIntegerSCCM Setpoint.
Example7(ClassId:0x33,Data‐type:0xCA,Data‐unit:0x010x10): Single‐precisionfloating‐pointCountSetpoint.
Example8(ClassId:0x33,Data‐type:0xCA,Data‐unit:0x000x14): Single‐precisionfloating‐pointSCCMSetpoint.
ForPolledI/OmessagesonlyData‐typecanbeselected.TheData‐unitattributewillbeautomaticallysetwhenPolled
I/O is started (on receipt of the first Polled I/O Request’s Data). The Data‐unit setting will be determined by the
selectedIOAssemblyInstance(seeparagraph2.5.1,Availabledata
combinationsforPolledI/O).
TheData‐typeandData‐unitAttributecanonlybesetwhentheMFCisintheIdlestate.IftheMFCis
notinthisstate(i.e.,Executingstate)theusermustusetheStopservice(0x07)ofInstance(0x01)ofthe
Supervisor object (0x30) to allow the MFC
to enter the Idle state for making the change. When the
attribute has been set the user can use the Start service (0x06) of the same object and instance to
resumetheExecutingstate.
Example1: Howtoprograminstrumentwithoption1fromabove
Object Instance Servicecode Attribute Value Description
30 1 0x07 stop:instrumenttoidlestate;
greenLEDlongflash:2secon,0.1secoff
31 1 0x10 0x03 0xC3 Datatype=INT
31 1 0x10 0x04 0x010x10 Dataunit=COUNT
30 1 0x06 start:instrumenttoexecutingstategreenLEDon
continuously
Example2: Howtoprograminstrumentwithoption8fromabove
Object Instance Servicecode Attribute Value Description
30 1 0x07
stop:instrumenttoidlestate;
greenLEDshortflash:2secon,0.1secoff
33 1 0x10 0x03 0xCA Datatype=REAL
33 1 0x10 0x04 0x000x14 Dataunit=SCCM
30 1 0x06 start:instrumenttoexecutingstategreenLEDon
continuously
Commentaires sur ces manuels