Industry Online Support
Technical Forum
3/2/2011 11:02 AM | |
Joined: 4/24/2008 Last visit: 8/2/2024 Posts: 213 Rating: (16) |
Most of the PLCopen functionblocks from S7 Technology have a „Mode“ parameter. At this Mode parameter you can parametrize a specific function by using an integer Value. Unfortunately it is not possible to parametrize a ENUM or a term in this case. Partially you need to check the manual or online help function to identify which integer value you need to parametrize. In the download you find a datablock (DB). This DB will help you in this case and the parameterization can occur in plaintext. The right value is already deposited in the DB. The only precondition for using is to include the DB in your program and to parametrize a symbolic name for this DB. (At our example it is called “SymTech”) Example: MC_MoveCircularAbsolute.CircModeThe user asign this input with a continual value. In most cases this value will be never change by the programm. For example MC_MoveCircularAbsolute.CircMode = 1 ( = CenterPoint using center of the circle) As soon as you pretend “SymTech” at the input variable, you will get a select list. This list will show you all available structures. In our example you need to choose “"MC_MoveCircularAbsolute" and then the respective input variable. In this case "CircMode“ In our example the MC_MoveCircularAbsolut need to move a circular path, which is defined by the CenterPoint. So you need to chosse this parameter. The saved value (SymTech".MC_MoveCircularAbsolute.CircMode.CenterPoint) in this case is the integer value 1 AttachmentSymtech.zip (207 Downloads) |
|
|
Follow us on