You are on page 1of 2

5/16/23, 9:14 PM Combine STRINGS in CCW

ID: QA15518 | Access Levels: Everyone

Combine STRINGS in CCW

Document ID QA15518

Published Date 02/14/2020

Summary
Combine STRINGS in CCW

Question
How can I combine multiple STRING variables in CCW?

Answer
In CCW, there already exist a function block which allows users to combine variables of STRING data type. This
function block is called INSERT, and allows users to combine 2 strings. If user needs to combine more than 2
strings, then a user defined function block (UDFB) can be created in order combine multiple strings.

Attached is a sample code of a UDFB that combines multiple strings. Import it to a program (technote 466043
has a section on importing files) then insert a new function block and look for "Multiple_strings" on the
Instruction Block Selector.

***keep in mind this is only a sample code, it should only be used as a way to better understand the
program/controller, not as an actual application code***

Attachments

File
Multiple_Strings.7z

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/473553 1/2
5/16/23, 9:14 PM Combine STRINGS in CCW

Recently Viewed

Connected
Access Real Time
Component
Clock (RTC) Micro800: Quick Start
Workbench (CCW)
parameters in Real Time Clock (RTC)
Standard and
Micro800 program
Developer Differences

DISCLAIMER
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.

www.rockwellautomation.com

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

https://rockwellautomation.custhelp.com/app/answers/answer_view/a_id/473553 2/2

You might also like