![Omron K6PM-TH Скачать руководство пользователя страница 129](http://html1.mh-extra.com/html/omron/k6pm-th/k6pm-th_user-manual_743374129.webp)
5 - 27
5 Monitoring and Setting with the EtherNet/IP Communications
K6PM-TH Thermal Condition Monitoring Device User’s Manual (H231)
5-3
Monit
o
rin
g
an
d Sett
ing
Usin
g th
e CIP
Messag
e Com
m
u
n
icat
ion
s and
Exam-
p
les o
f Co
mm
unic
ation
s In
struct
ion
s
5
5-
3-9 Examples of
CIP
Message Commu
nications In
str
uction
An example of reading data in the Main Unit using the CIP message communications is shown below.
Example: The following is an example of reading the Main Unit status using the CIP message commu-
nications instruction of the NJ/NX-series Controller.
The CIPUCMMSend (Send Explicit Message UCMM) instruction is used a CIP message communica-
tions instruction.
Send the following CIP message.
• Service code: 16#0E (Get_Attribute_Single: read the value of the specified attribute)
• Class ID: 374 hex
• Instance ID: 01 hex
• Attribute ID: 64 hex (Main Unit status)
The CIPUCMMSend instruction sends the command data "ServiceDat" as a UCMM message corre-
sponding to the service specified by the "ServiceCode".
The destination is specified by the route path "RoutePath". The request path is specified by "RqPath".
Set the following value to the input variable of the above communications instruction.
5-3-9
Examples of CIP Message Communications Instruction
Input variable of the com-
munications instruction
Specification
Value to pass to
input variable
Meaning
RoutePath
Route path
specification
02\IPaddress
"02" specifies the output from the NJ-series
built-in EtherNet/IP port or the NX-series
built-in EtherNet/IP port 1.
The IP address specifies the IP address of
the Main Unit.
TimeOut
Timeout time
specification
UINT#20
Timeout time is specified.
The integer "20" specifies 2.0 s as the time-
out time. It is 0.1 s unit.
ServiceCode
Service code
BYTE#16#0E
0EHex specifies "Get_Attribute_Single”
as a service code which reads the value of
the specified attribute.
CIPUCMMSend
Execute
Done
RoutePath
Busy
TimeOut
Error
ServiceCode
ErrorID
RqPath
ErrorIDEx
ServiceDat
RespSize
Size
RespServiceDat
02¥IP address
UINT#20 (when 2.0second)
BYTE#16#0E
Not used (dummy variable)
UINT#0 (fixed)
User-defined variable to receive response data
User-defined variable indicating Request path
Done
Busy
Error
Error code
Expansion error code *
1
Response data size
Execution
condition
Send Explicit Message UCMM instruction
Содержание K6PM-TH
Страница 56: ...2 Installation and Wiring 2 20 K6PM TH Thermal Condition Monitoring Device User s Manual H231...
Страница 76: ...3 Initial Setting 3 20 K6PM TH Thermal Condition Monitoring Device User s Manual H231...
Страница 156: ...7 Troubleshooting 7 8 K6PM TH Thermal Condition Monitoring Device User s Manual H231...
Страница 195: ...I 1 I K6PM TH Thermal Condition Monitoring Device User s Manual H231 Index...
Страница 197: ......