setDebugging()
|
- Renamed to
setDebugLevel()
- Debug levels changed: 0,1,2,3 instead of 0,1,2,3,4
|
- Rename all
setDebugging() calls to setDebugLevel()
- Change all debug levels of 1 to 0
- Change all debug levels of 2 to 1
- Change all debug levels of 3 to 2
- Change all debug levels of 4 to 3
|
subscribe()
|
|
- Rename all
subscribe() calls to subscribeValue()
- Check if default cycle time was used and set
cycleTime it if needed
NOTE: Consider using the new subscribe() instead
|
subscribeRaw()
|
|
- Check if default cycle time was used and set
cycleTime it if needed
NOTE: Consider using the new subscribe() instead
|
unsubscribe()
|
- No longer accepts a numeric handle value
- Reason: multiple targets are allowed, numeric handle values are no longer unique
|
- Check that all
client.unsubscribe() calls use handle object as parameter instead of a numerical handle value
- If you always use return value of a subscription method, everything if fine
- E.g.
const { handle } = await client.subscribe(...); await client.unsubscribe(handle) is OK!
|
readSymbol()
|
|
- Rename all
readSymbol() calls to readValue()
|
readRaw()
|
- Parameter
targetAdsPort removed
- Parameter
targetOpts added
|
- If target ADS port was overridden with
targetAdsPort , change to use new targetOpts format instead
readRaw(*, *, *, 852) -> readRaw(*, *, *, { adsPort: 852 })
|
writeSymbol()
|
|
- Rename all
writeSymbol() calls to writeValue()
|
writeRaw()
|
- Parameter
targetAdsPort removed
- Parameter
targetOpts added
|
- If target ADS port was overridden with
targetAdsPort , change to use new targetOpts format instead
writeRaw(*, *, *, 852) -> writeRaw(*, *, *, { adsPort: 852 })
|
readRawMulti()
|
- Return value type changed
- Parameter
targetAdsPort removed
- Parameter
targetOpts added
|
- Change all
readRawMulti() calls to use new return value type
{success, errorInfo, target, data}[] ->
{success, command, value, error, errorCode, errorStr}[]
- Old
data property is renamed to value
- If target ADS port was overridden with
targetAdsPort , change to use new targetOpts format instead
readRawMulti(*, 852) -> readRawMulti(*, { adsPort: 852 })
|
writeRawMulti()
|
- Return value type changed
- Parameter
targetAdsPort removed
- Parameter
targetOpts added
|
- Change all
writeRawMulti() calls to use new return value type
{success, errorInfo, target}[] ->
{success, command, error, errorCode, errorStr}[]
- If target ADS port was overridden with
targetAdsPort , change to use new targetOpts format instead
writeRawMulti(*, 852) -> writeRawMulti(*, { adsPort: 852 })
|
restartPlc()
startPlc()
stopPlc()
|
- Parameter
adsPort removed
- Parameter
targetOpts added
|
- If target ADS port was overridden with
adsPort , change to use new targetOpts format instead
- E.g.
restartPlc(852) -> restartPlc({ adsPort: 852 })
|
writeControl()
|
- Parameter order has changed
adsState allows string value as well
- Parameter
adsPort removed
- Parameter
targetOpts added
|
- Change parameter order and
adsPort parameter to use new targetOpts format instead
- E.g.
writeControl(10000, 16, 0) -> writeControl(16, 0, undefined, { adsPort: 10000 })
|
getEmptyPlcType()
|
- Renamed to
getDefaultPlcObject()
|
- Rename all
getEmptyPlcType() calls to getDefaultPlcObject()
|
getSymbolInfo()
|
|
- Rename all
getSymbolInfo() calls to getSymbols()
|
readAndCacheSymbols()
|
|
- Use
cacheSymbols() to cache all symbols
- Use
getSymbols() to get all symbols
|
readAndCacheDataTypes()
|
|
- Use
cacheDataTypes() to cache all data types
- Use
getDataTypes() to get all data types
|
setSystemManagerToRun()
|
- Renamed to
setTcSystemToRun()
|
- Rename all
setSystemManagerToRun() calls to setTcSystemToRun()
|
setSystemManagerToConfig()
|
- Renamed to
setTcSystemToConfig()
|
- Rename all
setSystemManagerToConfig() calls to setTcSystemToConfig()
|
restartSystemManager()
|
- Renamed to
restartTcSystem()
|
- Rename all
restartSystemManager() calls to restartTcSystem()
|
readSymbolVersion()
|
- Renamed to
readPlcSymbolVersion()
|
- Rename all
readSymbolVersion() calls to readPlcSymbolVersion()
|
readUploadInfo()
|
- Renamed to
readPlcUploadInfo()
|
- Rename all
readUploadInfo() calls to readPlcUploadInfo()
|
readRawByName()
|
- Renamed to
readRawByPath()
|
- Rename all
readRawByName() calls to readRawByPath()
|
createVariableHandleMulti()
|
- Return value type changed
- Return value property
handle type changed from number to object
|
- Change all
createVariableHandleMulti() calls to use new return value type
{success, errorInfo, target, handle}[] ->
{success, path, handle, error, errorCode, errorStr}[]
- If returned
handle property was used as a number, change it to use new returned handle.handle
|
deleteVariableHandleMulti()
|
- Return value type changed
- Return value property
handle type changed from number to object
|
- Change all
deleteVariableHandleMulti() calls to use new return value type
{success, errorInfo, target, handle}[] ->
{success, handle, error, errorCode, errorStr}[]
- If returned
handle property was used as a number, change it to use new returned handle.handle
|