cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus TCP app - Single coil operation doesn't work/exist

Modbus TCP app - Single coil operation doesn't work/exist

Vaaclav
Member

Hello community,

I've got Modbus TCP App v.1.20.2 installed and trying remotely control power supply. There are multiple read/write holding registers for voltage/current reading, which works fine. But then there is single coil access, which I absolutely need to switch power supply to remote control. I was not able to read single coil with FC1 and FC5 for writing single coil doesn't even exist.

modbus2.png

 

modbus3.png 

 

 

 

 

 

 

I tried the communication with Modbus Master tool and everything works as expected. FC1 read succesful, FC5 write successful:

modbus4.png

What can do with that? Is there some configuration or workaround I can set or use?

The FC5 single coil write command doesn't really exist on Modbus TCP app? Without that, I'm not even able to set power supply to listen remote command...

modbus5.png

 

Many thanks

3 REPLIES 3

jagz
New Poster

Hello @Vaaclav 

Instead of FC5 did you try using FC15(write multiple coils) with quantity 1?
 
 

Hi @jagz,

unfortunately it doesn't work. The power supply accepts only specified functions, i.e. FC1, FC3, FC5, FC6, FC16 as you can see on the screenshot above.

CodeShepherd
Community Moderator
Community Moderator

In the official online documentation for the Modbus TCP V1 app (https://docs.automation.boschrexroth.com/doc/4288575786/supported-function-codes/3-03/en/) is FC2 not mentioned. So I guess it is simply not available.

See in comparison the documentation of version 2 https://docs.automation.boschrexroth.com/doc/1973345983/supported-function-codes/latest/en/

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist