Is it possible to activate virtual mode of SoftMotion axis from application
Yes, it is possible.
The virtual mode of an axis can be set / reset in IEC- code by using "SMC3_ReinitDrive"
Function block SMC3_ReinitDrive is a part of SM3_Basic library and reinits a drive/axis.
Input bVirtual determines whether a axis really exists or if it is simulated. If the input bVirtual is set TRUE, the axis is set into virtual mode. Then it will be replaced by a simulation similar to a virtual drive device. This has no influence on the field bus devices, which will work as usual but without receiving messages from or sending messages to the real device. This corresponds to the settings done in “SoftMotion Device Editor”.