Upgrading Connectware to 2.7.0 (Kubernetes)
Prepare services with ADS endpoints for Connectware 2.7.0 on Kubernetes. Without ADS endpoints, no extra steps are needed.
Connectware 2.7.0 rebuilds the ADS connector. This guide covers the changes that services with ADS endpoints need when you upgrade. For a complete list of changes, see the 2.7.0 changelog.
Only for services with ADS endpoints
This guide applies only if your services have endpoints with protocol: Ads. To check, search your service commissioning files for protocol: Ads. If you do not use the ADS connector, upgrade as usual. See Upgrading Connectware (Kubernetes).
If you upgrade from a version before Connectware 2.6.0, also check Connectware Upgrade Paths for the steps of the versions in between.
Upgrade to Connectware 2.7.0
Complete the following steps in order.
Remove dataType and readSize from ADS Endpoints
This step applies if your ADS endpoints set dataType or readSize.
Connectware 2.7.0 takes the data type and size of every ADS value from the symbol table of the PLC, and no longer accepts the dataType and readSize endpoint properties. Earlier versions ignore both properties, so removing them before the upgrade does not change how your services work.
In every service commissioning file with ADS endpoints, remove
dataTypeandreadSizefrom theread,write, andsubscribesections.Update each affected service with the corrected service commissioning file. See Updating Services.
resources:
counterSubscribe:
type: Cybus::Endpoint
properties:
protocol: Ads
connection: !ref adsConnection
subscribe:
symbolName: MAIN.counter
interval: 1000
# dataType: int16LE <- remove
# readSize: 2 <- removeIf you upgrade without removing them, you can no longer enable, disable, or update the affected services. Delete each affected service and install it again from the corrected service commissioning file.
Check the Message Formats of ADS Endpoints
This step applies if mappings, rules, or applications process the messages of your ADS endpoints.
Check your mappings, rules, and applications for the following changes. Update them when you upgrade, because Connectware 2.6 still uses the earlier formats:
64-bit integers: Connectware 2.7.0 publishes
LINT,ULINT,LWORD, andLTIMEvalues in read responses and subscribe messages as decimal strings, such as"9007199254740993", and accepts a whole number or a decimal string when you write them. If your applications read or write these values as Buffer objects, switch them to decimal strings.Write values: Connectware 2.7.0 checks every write value against the data type of the symbol and refuses a value that does not fit, instead of converting it. For example, it refuses the string
"false"for aBOOL, the number1.5for anINT, and a Buffer object for aBYTE. See Write Values.Read responses: Read responses keep the structure
{ value, type, symbol }insidevalue, but a few fields are renamed or removed. Invalue.type,arrayDatais nowarrayInfos, andenumInfois nowenumInfos. Invalue.symbol,arrayDatais nowarrayInfo, andnameLength,typeLength, andcommentLengthare removed. If your mappings read these fields, update them.
Upgrade Connectware
Follow the instructions in Upgrading Connectware (Kubernetes) to upgrade to Connectware 2.7.0.
Verification
In the Admin UI, check that every service with ADS endpoints is enabled and does not show Deviated.
Last updated
Was this helpful?

