Download LIBRARY B FUNCTION BLOCKS INSTRUCTION MANUAL
Transcript
Block Library LOCAL_MOD_MAP (MBSS) LOCAL_MOD_MAP = x e.g. OFFSET = 40 * x LOCAL_MOD_MAP x = 0 ~ 15 =1 42601+ OFFSET 42641 42602+ OFFSET 42642 42603+ OFFSET 42643 42604+ OFFSET 42644 42605+ OFFSET 42645 42606+ OFFSET 42646 42607+ OFFSET 42647 42608+ OFFSET 42648 42609+ OFFSET 42649 42610+ OFFSET 42650 42611+ OFFSET 42651 42612+ OFFSET 42652 42613+ OFFSET 42653 42614+ OFFSET 42654 42615+ OFFSET 42655 PARAMETER FVALUE1 FVALUE2 FVALUE3 FVALUE4 FVALUE5 FVALUE6 FVALUE7 FVALUE8 42616+ OFFSET 42656 42617+ OFFSET 42657 42618+ OFFSET 42658 42619+ OFFSET 42659 42620+ OFFSET 42660 42621+ OFFSET 42661 42622+ OFFSET 42662 42623+ OFFSET 42663 42624+ OFFSET 42664 BVALUE1 2601+ OFFSET 2641 BVALUE2 2602+ OFFSET 2642 BVALUE3 2603+ OFFSET 2643 BVALUE4 2604+ OFFSET 2644 BAD_STATUS 42625+OFFSET 42665 IVALUE1 IVALUE2 IVALUE3 IVALUE4 LOCAL_MOD_MAP= X OFFSET = 40*X Once values for LOCAL_MOD_MAP are set, MODBUS ADDRESSES are given to the variables you wish to monitor. So, each integer, float or Boolean variable will have a Modbus address associated. For example, suppose LOCAL_MOD_MAP = 1 and a float value will be monitored. Picking the F_ID1 and setting its parameters, we have: F_ID1.Tag = Tag of the float parameter necessary to monitor F_ID1.Index= Index of the first column of the parameter necessary to monitor. F_ID1.subindex = The sub index is used for parameters that have a structure. In this case it is necessary to indicate which element of the structure is being referred. See the table above The Modbus addresses given to this parameter (remember, float values use two Modbus registers) are 42641 and 42642. BAD_STATUS Parameter This parameter indicates if the Fieldbus communication is OK or no. If the correspondent bit is in logic level 1 this means there was an error during writing/reading of the respective parameter. The table below presents the values for these status values. Relation between the bits in BAD_STATUS and Modbus addresses BIT PARAMETER 0 FVALUE1 1 FVALUE2 2.221