Examples Of Cip Message Communications Instruction - Omron K6PM-TH User Manual

Thermal condition monitoring device
Hide thumbs Also See for K6PM-TH:
Table of Contents

Advertisement

5-3-9

Examples of CIP Message Communications Instruction

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".
Execution
condition
User-defined variable indicating Request path
User-defined variable to receive response data
Set the following value to the input variable of the above communications instruction.
Input variable of the com-
munications instruction
RoutePath
TimeOut
ServiceCode
K6PM-TH Thermal Condition Monitoring Device User's Manual (H231)
5 Monitoring and Setting with the EtherNet/IP Communications
02¥IP address
UINT#20 (when 2.0second)
BYTE#16#0E
Not used (dummy variable)
UINT#0 (fixed)
Specification
Route path
specification
Timeout time
specification
Service code
Send Explicit Message UCMM instruction
CIPUCMMSend
Execute
RoutePath
TimeOut
ServiceCode
RqPath
ErrorIDEx
ServiceDat
RespSize
Size
RespServiceDat
Value to pass to
input variable
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.
UINT#20
Timeout time is specified.
The integer "20" specifies 2.0 s as the time-
out time. It is 0.1 s unit.
BYTE#16#0E
0EHex specifies "Get_Attribute_Single"
as a service code which reads the value of
the specified attribute.
Done
Done
Busy
Busy
Error
Error
Error code
ErrorID
Expansion error code *
Response data size
Meaning
5
1
5 - 27

Advertisement

Table of Contents
loading

This manual is also suitable for:

K6pm-thmd-eipK6pm-ths3232

Table of Contents