Using expressions for a multistate indicator in FTView studio

maynarddon

Member
Join Date
Nov 2006
Location
usa
Posts
14
Hello. I am new to expressions in FTView. I am replacing a GOT with a panelview and am trying to drive a multi-state indicator with a expression based on the value of an int. The ind. has three states. State 0 is normal int value of 3. State 1 is >3 <15. State 2 is =>16 I can do this in GTDesigner with an expression like this: for state 1: 3<$V<15 for state 2: 16<=$V

I have tried several times but the syntax always fails. Admittedly, I amnext to clueless about this! Thanks for taking time to help. Don
 
Hi & Welcome to the forum,

Try

if #1=3 then 0 else if (3<#1) AND (#1< 15) then 1 else 2


Where #1 is your tagname (or placeholder if using parameter files)


Cheers
Ian
 
Ian thanks for your reply. I am going to try that. Since I signed up here I've never had anything to offer. All I do is look for answers to my problems which I find 99% of the time.(y)
 

Similar Topics

I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
64
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
124
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
222
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
60
Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
109
Back
Top Bottom