CCW - Using constants with compare instruction blocks

Schmackster

Member
Join Date
Sep 2017
Location
Sydney
Posts
8
Hi,

Have done a few programs with CCW and am slowly getting my mind around it. Previously I have used compare instruction blocks to start drives based on the values of a startup timer. To do this I used the timer address for i1 and then used "#T30s" for i2. This meant that when the timer value was greater than 30 seconds then the compare instruction would become true and the drive would start.
attachment.php


This time I am using an analog input for i1 (0-4000) and need to put a constant into i2 but am not sure of the correct syntax. Can anyone help me out?

Thanks

Capture.JPG
 
Is (0-4000) the raw value of what input?? You just have to make sure i1 and i2 are the same data types.

You could convert the analog input to a real value and then use your trigger point (i2) as a real value - example 1389.0.
 

Similar Topics

Hey everyone. I am trying to create some logic that will turn on an output only during production times. M-F 5am to 3:30pm. The output is for...
Replies
3
Views
1,361
Can you please help me to write the whole code for the function (MSG_Modbus2) using Structured Text at Connected Components Workbench (CCW). When...
Replies
0
Views
1,317
Using CCW version 11 or 12, downloading parameters to powerflex 700s failed. Unknown DPI error. (From message DPI: 81 00 :: 30.1.5) (Heidenhain...
Replies
0
Views
1,948
Hi! We need to keep a copy of the program of our packaging machine AB PLC. Would I be able to read the program of a Micrologix 1400 PLC using CCW...
Replies
8
Views
2,988
Hi techsperts! I was wondering if anyone could help me... I have a project where I've configured a (Micro850) PLC as well as a (Powerflex) VSD...
Replies
4
Views
2,046
Back
Top Bottom