Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tito

Pages: 1 [2] 3 4
16
Technical support / Re:LCD update data instantly
« on: August 25, 2012, 10:06:31 PM »
Hi, i did drop an email to you.
thank you.

17
Technical support / Direct LAN connect with FMD88
« on: August 25, 2012, 11:47:08 AM »
 Hi,
??? I am trying connect my pc to FMD88-10 using LAN cable connection directly.
Web server indicates (Internet TriLOG Sever) IP Address : 10.1.3:9080
Where my pc connected to WIFI and LAN port connected to FMD.
While used "F-Series & Nano PLC Ethernet Configuration" Software, my FMD board IP is 192.168.1.5 , Gateway IP : 192.168.1.1
 Port #9080.

My TCP/IP for LAN (Lap top) is set to "obtain an IP address automatically".

LAN couldn't establish connection with FMD. I did try out all possibility and still couldn't.

I did disable Anti-Virus, FireWall and Interent, still unable to connect.

18
Technical support / Re:LCD update data instantly
« on: August 25, 2012, 10:02:34 AM »
 :D Hi,

My current situation is, i have 5 sensor to determine either "ON or OFF" situations and 1 Analog input 4-20 mA to determine height of water level.

Refer to my 5 sensor ( on relay with state "ON" / "OFF")
if the sensor trigger and send sms to indicate "SYSTEM SENSOR n  NOT STABLE"  and after 5 min and still "ON" send sms continuously with interval of 5 min. If the changes happen from "ON" to "OFF" send SMS once to indicate "SYSTEM SENSOR n STABLE"  and wait for any changes happen from 0 to 1 again.

Refer to my analog input, display my reading in LCD every 1 sec or depends. if my water level is increasing above 5 meter then check for every 30 sec if the water level is higher or equal to 5 meter then sending sms. If below 5 m send sms once and keep on monitoring.

I am just thinking on worst conditons. Summary of time interval

For sensor if 5 sensor trigger at once:
then need 50 secs to send SMS and next after 5 mins.

For analog input if trigger above 5 meter
then  very 30 sec's.

FIFO method would be good for this applications.

Thanks  

19
Technical support / Re:LCD update data instantly
« on: August 24, 2012, 10:01:08 PM »
 ;D, i got it. Thank you very much.

Back to my queuing question, what i meant is :-
When ever changes happen in my input[1] i need to send sms.
Let say every second changes happens (talk on worst conditons), on changes i need to send SMS. Every SMS approximates will take 10 sec to go out. I need to que up to send one by one.

20
Technical support / How to send data from FMD88-10 direct to MSSQL
« on: August 24, 2012, 09:04:56 PM »
Hi , Can i get some information to kick start how to send data from board to local database(MSSQL). Especially how to call connection string to established connection before INSERT data.

Examle connection string :-

<add key="ConnectionString" value="Data Source=(local)\SQLEXPRESS;Initial Catalog=FMD8810;User ID=sa;Password=mysa;" />

Thank you. ???

21
Technical support / Re:LCD update data instantly
« on: August 24, 2012, 08:36:35 PM »
Hi Gary,

Thanks for reply, you get what i meant. But i need to ask something on your coding. On this part :-

IF ((DM[17] ^ INPUT[1]) & &H1F) = 0
   RETURN               ' Inputs have not changed, bail out.
ENDIF

where DM[17] ^ INPUT[1] where EOR to get change from 0 to 1 or 1 to 0.
that's mean initially DM[17] is 0 and EOR with INPUT[1] to capture the changes.

Question is  &H1F = 31 bit. from 0 to 31 which equal to 32 bit for integer. why you & (AND) with &H1F? i didn't get this part. please do elaborate this section.
Thanks in advance.

22
Technical support / Re:ADC simulation
« on: August 24, 2012, 08:12:23 PM »
Superb, thank you.

A = ADC(1)*1000/4096 'changed from 10 to 1000
SETLCD 1,1,"Wtr Level = "+STR$(A/100) +"."+STR$(A mod 100,2)+ " m"

23
Technical support / Re:LCD update data instantly
« on: August 24, 2012, 06:25:55 PM »
Cheers, I understood the function clearly that

""Your code will not work properly if more than one input is ON at the same time since you are only testing the pattern when only one input is ON at any one time.""

Refer to the statement, if i am CALLing functions on for every sensor triggered, how can i put in queuing system?  

24
Technical support / Re:LCD update data instantly
« on: August 23, 2012, 09:00:49 PM »
Hi, is there anything wrong on my coding, when i disable line start with K$ my simulaiton run otherwise hang. I do trigger this functions every 5 sec under differential UP Custom Function.


if input[1] = 1  then DM[1]=1 : else DM[1]=0 : endif   'input #1
if input[1] = 2  then DM[2]=1 : else DM[2]=0 : endif   'input #2
if input[1] = 4  then DM[3]=1 : else DM[3]=0 : endif   'input #3
if input[1] = 8  then DM[4]=1 : else DM[4]=0 : endif   'input #4
if input[1] = 16 then DM[5]=1 : else DM[5]=0 : endif  'input #5

K$= STR$(DM[1]) +","+ STR$(DM[2])+","+STR$(DM[3])+","+STR$(DM[4])+","+STR$(DM[5])

25
Technical support / Re:ADC simulation
« on: August 22, 2012, 08:28:45 PM »
Hi, I am using 5K variable resistor to simulate height of water level from 0 to 10 m

A = ADC(1)*10/4096
SETLCD 1,1,"Wtr Level = "+STR$(A)+ " m"

my intention is to display in LCD with 2 decimal place. Is that possible? Currently its just display in integer format.

26
Technical support / Re:How to receive sms and delete
« on: August 21, 2012, 11:38:06 AM »
Hi, after long search on reading sms, i do manage to read receive sms by using incomm instead of input$.

I do notice in VB.net and C# while send "AT" the return is
"AT\r\r\nOK\r\n" it will be equivalent with "AT"+CHR$(13)+CHR$(13)+CHR$(10)+"OK"+CHR$(13)+CHR$(10).

by using incomm with :-
 
SETBAUD 1,9
Print #1 "AT"

for i = 1 to 100
    DM = incomm(1)
    A$ = A$ + CHR$(DM)
    if DM<0 then
           exit
    endif
next

By doing this i could obtain the entire string. Please do correct if i am wrong.

Thanks

27
Technical support / Initialization of DM and string
« on: August 21, 2012, 10:08:17 AM »
Hi, How to initialize:-
1) DM,
   do i have to put in loop and assign to -1?
2) String
   do i have to assign with ""   ?

thank you

28
Technical support / Re:LCD update data instantly
« on: August 20, 2012, 10:22:25 PM »
Hi, Manage to sort out as per your advice,

i did use cust function with Clk 1.0s then

if input[1]=1 then
   setlcd 2,1,"Door 1 is open"
else
   setlcd 2,2,"door 1 is close"
endif

if input[1] = 2 then
 setlcd 3,1,"Door 2 is open"
else
   setlcd 3,2,"door 2 is close"
endif

I do use for loop to complete my circle.

Cheers

29
Technical support / Re:ADC simulation
« on: August 20, 2012, 09:42:48 PM »
 ;) Cheers

30
Technical support / LCD update data instantly
« on: August 20, 2012, 10:07:19 AM »
Hi, I am still trying out to get grip on the board.

I am trying out with 8 switch control with direct connection with 8 output and 2 analog input.

What i am trying out is when ever the switch is on or off should update my LCD, let saying Door 1 is open or Door 1 is closed. This is triggered when ever event happens only. Same goes to AI no 1, when data changes should update in row 2 and AI no2 goes to row 3.

Thanks for your support in advance. :)

Pages: 1 [2] 3 4