Läs och skrivning till Holding register på en regin uppsatt enligt:
{ BPac
; MODBUS Slave Protocol
; Revision 2.0-0-12, Date: 2010-06-01
; (c) AB REGIN, Landskrona, Sweden
BlkSize = 12
Def_L = 0
Def_X = 0
Def_I = 0
Def_R = 0
}
{ Values
; Input & Holding Register types (Type)
; 0: no decoding or manuf. spec. format
; 1: One index variable to LSB of one register
; 2: Two index variables to LSB & MSB of one register
; 3: Integer variable to one register. No scaling
; 4: Real variable to one register. Scale and Offset used
; 5:
; 6: Real variable to two registers (IEEE)
; 7: Real variable in BPac to one register. Scale and Offset used
; Example: #305 DPacLn(TimeDp) ModVaraddr(TimeDp.Posts(0).T1) 7 100 *
; 8: Index variable in BPac to one register.
; Example: #306 DPacLn(TimeGrp) ModVaraddr(TimeGrp.Posts(0).P1) 8 * *
( No :X Ldn :I Cell :X Type :R Scale :R Offs )
;----- Input Status Registers ----------------------------------------------------
#0 DPacLn(InputOutput) ModVaraddr(InputOutput.FA1_Larm_Ind) * * *
#1 DPacLn(InputOutput) ModVaraddr(InputOutput.FF1_Ind) * * *
#2 DPacLn(InputOutput) ModVaraddr(InputOutput.SPJ3_SPJ4_Stängt_Öppet_Ind) * * *
#3 DPacLn(InputOutput) ModVaraddr(InputOutput.SPJ3_SPJ4_Öppet_Stängt_Ind) * * *
#4 DPacLn(InputOutput) ModVaraddr(InputOutput.Test_Omk_på_Skåp_Ind) * * *
#5 DPacLn(InputOutput) ModVaraddr(InputOutput.Service_Omk_Ind) * * *
#6 DPacLn(InputOutput) ModVaraddr(InputOutput.FF1_Man) * * *
#7 DPacLn(InputOutput) ModVaraddr(InputOutput.SPJ3_SPJ4_Man) * * *
#8 DPacLn(InputOutput) ModVaraddr(InputOutput.VP_Steg1_Man) * * *
#9 DPacLn(InputOutput) ModVaraddr(InputOutput.VP_Steg2_Man) * * *
#10 DPacLn(InputOutput) ModVaraddr(InputOutput.AS_H2_SA_Larm_A_Man) * * *
#11 DPacLn(InputOutput) ModVaraddr(InputOutput.AS_H2_SA_Larm_B_Man) * * *
#12 DPacLn(InputOutput) ModVaraddr(InputOutput.AS_H2_SA_Larm_C_Man) * * *
;----- Coil Status Registers -----------------------------------------------------
#100 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FA1_Start_Stopp_Input5) * * *
#101 DPacLn(StdObjs1) ModVaraddr(StdObjs1.VP1_Start_Stopp_Input5) * * *
#102 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FF1_Start_Stopp_Input5) * * *
;----- Input Registers -----------------------------------------------------------
#200 DPacLn(InputOutput) ModVaraddr(InputOutput.FA1_GP1) 4 10 *
#202 DPacLn(InputOutput) ModVaraddr(InputOutput.FA1_GT1) 4 10 *
#204 DPacLn(InputOutput) ModVaraddr(InputOutput.UTE_GT3) 4 10 *
#206 DPacLn(InputOutput) ModVaraddr(InputOutput.FA1_FO) 4 10 *
#208 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FA1_Tryckstyrning_SetP) 4 10 *
;----- Holding Registers ---------------------------------------------------------
#300 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FF1_Brandfläkt_Select) 1 * *
#301 DPacLn(StdObjs1) ModVaraddr(StdObjs1.VP1_Steg_1_Manöver_Select) 1 * *
#302 DPacLn(StdObjs1) ModVaraddr(StdObjs1.VP1_Steg_2_Manöver_Select) 1 * *
#303 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FA1_Börvärde_Input0) 4 10 *
#305 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FA1_Börvärde_Input1) 4 10 *
#307 DPacLn(StdObjs1) ModVaraddr(StdObjs1.FA1_Block_Helfart_via_UTE_Temp_Setp) 4 10 *
;----- End -----------------------------------------------------------------------
#308 255 * * * *
}