Jump to content

how to make a user defined enum as an input for a ladder function

Recommended Posts

I am controlling a VFD via modbus where there is a forward bit and a reverse bit in a command word.  I need to implement logic to set/reset the bits based on the direction the VFD needs to move and I want this logic to be wrapped up in a single user defined function block using an enum as the input to protect against invalid arguments being passed.  I'm not sure if there is a way to do this but I've tried using the clunky LIST feature which did not work.  I know some of the UniLogic supplied blocks do this.  Does anyone have any thoughts on how to do this?  


Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...