0% found this document useful (0 votes)
10 views

CCW - Reading The Serial Number of A Micro800 Controller Programmatically

Uploaded by

Sharad Adelkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

CCW - Reading The Serial Number of A Micro800 Controller Programmatically

Uploaded by

Sharad Adelkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

12/22/23, 7:04 PM CCW: Reading the Serial Number of a Micro800 controller programmatically

ID: QA24087 | Access Levels: Everyone

CCW: Reading the Serial Number of a


Micro800 controller programmatically

Document ID QA24087

Published Date 08/13/2023

Summary

Help & Feedback


CCW: Reading the Serial Number of a Micro800 controller programmatically

Question
Can you programmatically read the Serial Number of a Micro800 controller?

Environment
Connected Components Workbench (CCW)
Micro800 controllers

Answer
Yes, by reading the CIP Identity Object of the controller with a MSG_CIPGENERIC instruction with Path to itself.

Note: The serial number that is read from the Identity Object is not the serial number on the controller label. It is
the same Serial Number that you would see in RSLinx Classic under Device Properties when displayed in
hexadecimal format.

Use the sample code shown below:

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/575795/loc/en_US 1/5
12/22/23, 7:04 PM CCW: Reading the Serial Number of a Micro800 controller programmatically

Configure the following variables for the instruction to use:

Help & Feedback

Instruction Parameter Data Type Example Variable Name


CtrlCfg CIPCONTROLCFG SN_CIPControlCfg

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/575795/loc/en_US 2/5
12/22/23, 7:04 PM CCW: Reading the Serial Number of a Micro800 controller programmatically

AppCfg CIPAPPCFG SN_CIPAppCfg


TargetCfg CIPTARGETCFG SN_CIPTargetCfg
ReqData USINT[1..4] SN_ReqData
ReqLength UINT SN_ReqLen
ResData USINT[1..4] SN_ResData
Status CIPSTATUS SN_CIPStatus
ResLength UINT SN_ResLen

Use the following Initial Values:

Variable Name Initial Value


SN_CIPControlCfg.Cancel FALSE
SN_CIPControlCfg.TriggerType 0
SN_CIPAppCfg.Service 14
SN_CIPAppCfg.Class 01

Help & Feedback


SN_CIPAppCfg.Instance 01
SN_CIPAppCfg.Attribute 06
SN_CIPTargetCfg.Path '0,0'
SN_CIPTargetCfg.CipConnMode 0
SN_CIPTargetCfg.UcmmTimeout 0
SN_CIPTargetCfg.ConnMsgTimeout 0
SN_CIPTargetCfg.ConnClose FALSE

SN_ResData contains the serial number broken into 4 USINT values. To match the Serial Number that is shown
in the Device Properties in RSLinx Classic it is necessary to reverse the order of the array and configure CCW to
show variables in hexadecimal format.

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/575795/loc/en_US 3/5
12/22/23, 7:04 PM CCW: Reading the Serial Number of a Micro800 controller programmatically

An example of reversing the order is shown below:

Help & Feedback


To configure the formatting preferences in CCW, select Tools-->Options…-->Projects-->Online and select
HexaDecimal from the Integer dropdown within the Numerical Display section.

For additional information refer to Chapter 3: Use CIP Generic Client Messaging of Micro800 Programmable
Controllers: Getting Started with CIP Client Messaging, publication 2080-QS002B.

The CIP Identity Object is documented in the same publication, in Appendix D CIP Objects of Micro800
Programmable Controllers: Getting Started with CIP Client Messaging, publication 2080-QS002B.

Recently Viewed

Message between
MicroLogix 1400 Micro800 controllers:
Micro800 Implicit and
Modbus TCP master to Connections
Explicit Messaging
Micro850 Modbus TCP capability
slave

DISCLAIMER

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/575795/loc/en_US 4/5
12/22/23, 7:04 PM CCW: Reading the Serial Number of a Micro800 controller programmatically

This knowledge base web site is intended to provide general technical information on a particular subject or
subjects and is not an exhaustive treatment of such subjects. Accordingly, the information in this web site is not
intended to constitute application, design, software or other professional engineering advice or services. Before
making any decision or taking any action, which might affect your equipment, you should consult a qualified
professional advisor.

ROCKWELL AUTOMATION DOES NOT WARRANT THE COMPLETENESS, TIMELINESS OR ACCURACY OF ANY OF THE
DATA CONTAINED IN THIS WEB SITE AND MAY MAKE CHANGES THERETO AT ANY TIME IN ITS SOLE DISCRETION
WITHOUT NOTICE. FURTHER, ALL INFORMATION CONVEYED HEREBY IS PROVIDED TO USERS "AS IS." IN NO EVENT
SHALL ROCKWELL BE LIABLE FOR ANY DAMAGES OF ANY KIND INCLUDING DIRECT, INDIRECT, INCIDENTAL,
CONSEQUENTIAL, LOSS PROFIT OR DAMAGE, EVEN IF ROCKWELL AUTOMATION HAVE BEEN ADVISED ON THE
POSSIBILITY OF SUCH DAMAGES.

ROCKWELL AUTOMATION DISCLAIMS ALL WARRANTIES WHETHER EXPRESSED OR IMPLIED IN RESPECT OF THE
INFORMATION (INCLUDING SOFTWARE) PROVIDED HEREBY, INCLUDING THE IMPLIED WARRANTIES OF FITNESS
FOR A PARTICULAR PURPOSE, MERCHANTABILITY, AND NON-INFRINGEMENT. Note that certain jurisdictions do
not countenance the exclusion of implied warranties; thus, this disclaimer may not apply to you.

Help & Feedback


www.rockwellautomation.com

Copyright © 2023 Rockwell Automation, Inc. All Rights Reserved.

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/575795/loc/en_US 5/5

You might also like