How to simulate trend in CITECT

Henry_Wang

Member
Join Date
Jun 2009
Location
Sydney
Posts
10
Hi ,
I am writing citect function to read trend , is anyone know how to simulate trend from stand alone CITECT server?
Thanks
 
Hi ,
I am writing citect function to read trend , is anyone know how to simulate trend from stand alone CITECT server?
Thanks

Yes

1. Create a disk IODevice
2. Create a tag on that device
3. Create a trend tag based on that tag
4. Use the RAND function on an event to put values into the tag created in step 2
 
Hey,

to create data you can also use following functions:

TestRandomWave
Generates a random wave.

TestSawWave
Generates a saw wave.

TestSinWave
Generates a sine wave.

TestSquareWave
Generates a square wave.

TestTriangWave
Generates a triangular wave.

just put one of those functions in the expressions field of the trend definition.

Marsi
 
Hi Mate,
I craet a disk IO server and IO device, and tag on IO device. b ut when compile it always show "bad IO device". why?
Thanks lot
 
I just found out which I used wrong address. and I also wrote some function as below.
REAL Tag1
FUNCTION RandValue(REAL Random)

WHILE(1) DO
Tag1=Rand(101);
SleepMS(1000);
END
RETURN;
END

 

Similar Topics

Hi there, I'm doing some extensive testing and commissioning with a slew of new Emerson PACSystems RX3i PLCs. It would be convenient to...
Replies
5
Views
104
Hello, I have a small application with a S7-1200 CPU 1212 and a KTP400 Basic HMI. When i am connected to the PLC with my PC i would like to...
Replies
1
Views
545
Hello everyone, i would like to test and run os server in pcs7 v8.2 project without rear PLC.i used plcim on ES and nettoplcsim and adjust the...
Replies
4
Views
1,333
Hi all, Im new to Allen Bradley software, so i was given a existing studio 5000 plc program. i already know how to use emulator and rslinx but as...
Replies
2
Views
1,411
I want to run a simulation of a program uploaded from a rockwell PLC, but I can't configure the CPU on the emulate to match the actual CPU.
Replies
10
Views
2,236
Back
Top Bottom