How do I change a digital value's block description during runtime?
Run the script mention below to change the block's description during runtime. The script updates the block descritption in the Alarmdat.dbf file also.
CREATE PROCEDURE UpdateDesc
(@block_name as varchar (34),@desc as varchar(50))
AS
declare @block_index int
set @block_index=(select block_index from dblist where block_name=@block_name )
if exists(select block_index from dv where block_index=@block_index)
begin
UPDATE DV set DESCRIPTION = @desc WHERE BLOCK_INDEX = @block_index
end
if exists(select block_index from AlarmDat where block_index=@block_index)
begin
UPDATE AlarmDat SET DESCRIPTION = @desc WHERE BLOCK_INDEX = @block_index
end
GO
To execute the script, run the following command:
EXEC updatedesc '<block_name'>,'<block_desc>'
How may I run the Operator Workstation from a third-party software and perform direct actions on P-CIM?
Running the Operator Workstation (Gdisplay.exe) with the “-H” argument, allows you to perform actions in P-CIM from third-party software. For example, writing the value 1 to the internal address D:2.
From the third-party software, enter the path to the Operator Workstation (Gdispaly.exe): “C:\Pcim32\Gdisplay.exe” with the “-H” argument. Use the Set command to write to the internal address “D:2” the value 1: -H[Set |!D:2 1].
For example: C:\Pcim32\Gdisplay.exe -H[Set |!D:2 1]
Important: P-CIM must be running in the background before executing the commands.