Epsilon EP-P Drive Reference Manual
135
Revision A4
www.controltechniques.com
"Range 00001 to 09999 - Each multiple of 16 coils are extracted from one user variable. <Qty> defines the number of coils
to write
"Range 40001 to 49999 the lower 16bits of a user variable is written to the 16 bit writable slave register
"Range 140001 to 149999 the lower 16bits of a user variable is written to the slave and the next modbus register is written
with the upper 16 bits of the user variable
<Qty> = The number of slave values to be written
<VarInstance> = The starting user variable instance number that the slave values will be set from. Decimal points will be
ignored.
This a block transfer command that can set several holding or input registers from user variables.
The program will not proceed to the next instruction until either the data transfer is complete or an error has occurred.
All operands can be numbers or expressions.
Example:
' Writes to slave 2 - 3 registers (41121, 41122 and 41123)
' the values in user variables var.var3, var.var4 and var.var5
WriteVar (2, 41121, 3, 3)
Example:
' Writes to slave 1 - n(var.qty) registers starting at register
' var.to the values in n(var.qty) user variables starting
' at var instance var.from
var.to = 41121
var.qty = 3
var.from = 3
WriteVar (1, var.from, var.qty, var.to)
WriteValue
This instruction will writes a single value to the slave
WriteValue (<SlaveId>, <ModbusAddr>, <Qty>, <Value>)
<SlaveId> = The instance number of a defined slave. See Network Modbus Master Slave tab
<ModbusAddr> = The starting modbus address of the slave coil or holding register
<Qty> = The number of Modbus addresses of the specific type to write with the given value
<Value> = An expression representing a 32 bit value. Decimal point for the Value will be ignored
This is a block transfer command that can load up to 32 modbus coils or two Holding registers.
When multiple coils are written, the low 16 bits of <value> is written least significant to most significant bit. If more than 16 coils
are written, <Value> is re-used.
The program will not proceed to the next instruction until either the data transfer is complete or an error has occurred.
All operands can be numbers or expressions.
Example:
' Write 1x 45 to register 39980 on MbMaster.1
WriteValue (1, 39980, 1, 45)
Example:
' Write 1x the content of var.var1 to register var.var0 on MbMaster.1
WriteValue (1, var.var0, 1, var.var1)
Range
Description
00001 - 09999
Each multiple of 16 coils are packed into one user variable. <Qty> defines the number of coils to
read
10001 - 19999
Each multiple of 16 coils are packed into one user variable. <Qty> defines the number of coils to
read
40001 - 49999
16 bit writable slave data is loaded into the lower 16bits of a user variable
140001 - 149999
Two 16 bit writable slave registers are loaded into the lower 16bits of a user variable and the upper
16 bits of the user variable
400001 - 409999
Unidrive 32bit values: Two 16bit slave holding registers are written from the 32bit user variable with
word swap as specified by the slave configuration.
Summary of Contents for Epsilon EP-P
Page 2: ......
Page 124: ...110 Epsilon EP P Drive Reference Manual www controltechniques com Revision A4...
Page 200: ...186 Epsilon EP P Drive Reference Manual www controltechniques com Revision A4...
Page 218: ...204 Epsilon EP P Drive Reference Manual www controltechniques com Revision A4...
Page 238: ...224 Epsilon EP P Drive Reference Manual www controltechniques com Revision A4...
Page 244: ...230 Epsilon EP P Drive Reference Manual www controltechniques com Revision A4...
Page 247: ......