Technical FAQs

Ask a Question

bSlaveAvailable is no component of CANREMOTEDEVICE - build message after updating project to SoMachine v4.1 or higher

Issue

The build message: 'bSlaveAvailable is no component of CANREMOTEDEVICE' appears after updating my SoMachine v3.1 project to SoMachine v4.1 or later. How do I resolve this?

 

Product Line

EcoStuxure Machine Expert / SoMachine v4.1 or higher

 

Environment

Configuration software

 

Cause

The CANOpen status BOOLEAN variable "IoGlobalsMapping.<nameOfCANopenDeviceInstance>.bSlaveAvailable" once used in SoMachine v3.1 is no longer supported in SoMachine v4.1 or higher.

 

Resolution

In SoMachine v4.1 or higher, the CIA405 library function "GET_STATE" must be used.
Please see the following example POU "GetCANState" below:


Also attached to this FAQ is "GET_STATE example and screenshots.zip", which contains:
1) GetCANState_ExamplePOU.export -  the .export file of the POU in the above screenshot example
2) GET_STATE FB in Library.png - Screenshot of the Library documentation of the CiA405 GET_STATE Function block
3) DEVICE_STATE FB in Library.png - Screenshot of the Library documentation of the returned Enumerated values from GET_STATE.STATE output
4) CANOPEN_KERNAL_ERRORS ENUM values.png - Screenshot of the the Library documentation of the returned ERROR values from GET_STATE.ERROR output

Was this helpful?
What can we do to improve the information ?