Parameters, Comment, Sample vb-syntax – BECKHOFF CP9090-S100 User Manual
Page 38: Writephysdata, Twin cat

Eiserstraße 5 / D-33415 Verl / Telefon 05246/963-0 / Telefax 05246/963-149
38
TWIN
CAT
WritePhysData
Setss the value in DP-Ram of CP9030.
Use this methode to access additional devices e.g. Poti.
HRESULT WritePhysData(
[in] long PhysOffset,
[in, out] VARIANT* pData
);
Parameters
PhysOffset
[in]
Offset in DPRam (Input: 0x0000 .. 0x00FF)
pData
[in, out]
Databuffer, following variant-types are implemented:
(VT_BYREF und VT_UI1)
(VT_BYREF und VT_I2)
(VT_BYREF und VT_I4)
(VT_BYREF und VT_R4)
(VT_BYREF und VT_R8)
Comment
You should be familiar with DP-Ram of CP9030 !!
Sample VB-Syntax
Dim iData as Integer
Dim lData as Long
Dim bData as Byte
call CP9030W9x1.WritePhysData(&H0&, lData)' Write 4 bytes
call CP9030W9x1.WritePhysData(&H0&, iData)' Write 2 bytes
call CP9030W9x1.WritePhysData(&H0&, bData)' Write 1 bytes
- Bus Terminal System (19 pages)
- EP-xxxx-xxxx (19 pages)
- BK2000 (30 pages)
- LC3100 (67 pages)
- BK4000 (28 pages)
- BK3xx0 (95 pages)
- BK5000 (12 pages)
- LC5200 (32 pages)
- BK7000 (29 pages)
- BK7500 (32 pages)
- BK7300 (40 pages)
- BK8100 (26 pages)
- BC2000 (28 pages)
- BC3100 (51 pages)
- BC7300 (48 pages)
- BC8100 (36 pages)
- BC3150 (112 pages)
- KL1012 (2 pages)
- KL1114 (2 pages)
- KL1164 (1 page)
- KL1232-xxxx (4 pages)
- KL1501 (19 pages)
- KL1512 (15 pages)
- KL2521-0024 (18 pages)
- KL2512 (21 pages)
- KL2612 (4 pages)
- KL2622 (9 pages)
- KL3062 (24 pages)
- KL3064 (20 pages)
- KL4132 (19 pages)
- KL4034 (25 pages)
- KL3302 (23 pages)
- KL3351 (18 pages)
- KS3681 (43 pages)
- KL4112 (18 pages)
- KL5001 (16 pages)
- KL5051 (17 pages)
- KL5101-0012 (21 pages)
- KS5111-0000 (21 pages)
- KL5121 (19 pages)
- KL6021 (20 pages)
- KL6051 (17 pages)
- Z1000 (2 pages)
- KL6071 (12 pages)
- Z1003 (2 pages)