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 - sid80555

Pages: 1 [2] 3
16
Technical support / Re:PRINT AND INCOMM keywords
« on: June 16, 2011, 07:30:12 AM »
I have not been able to get the requird result yet.I have explained below what i have done and if you can let me know where i have been going wrong that would be great :) i have no clue why you say i should use a for loop...
I have attached my ladder logic in the attached diagram.The message1 function sends out PRINT #1 "AT+CMGS="+CHR$(34)+"+44******"+CHR$(34)+CHR$(13) when the input goes to 1.
Then i use a timer of 2 sec to wait for a response from the modem (waiti for the > character).After which message 2 function executes.Message 2 has
A$=INCOMM(1)
B$=CHR$(62)
IF STRCMP(A$,B$)=0 THEN
PRINT #1 "HELLO"+CHR$(26)
ENDIF   

This does not seem to work at the moment,however if my message2 function has only PRINT #1 "HELLO"+CHR$(26)
it sends the message hello(it assumes that the > is recieved in this case).
please help

 

17
Technical support / Re:24Vdc uniterrupted power supply
« on: June 16, 2011, 05:39:42 AM »
Thank you for the reply, but this supports only Lead acid batterys.which are bulky and heavy.What i need is something compact with the battery which can be installed in the same casing as the PLC.i was wondering if i could make a battery pack out of ni-cd batterys and charge this using some kind of a charger? I have tried looking for this online but have`nt got 2 much of help..

18
Technical support / 24Vdc uniterrupted power supply
« on: June 15, 2011, 03:01:46 PM »
Hello can you suggest me a power supply to get a 24vdc battery backed power supply (input from 230Vac).I want a pretty compact power supply(about 10 cm by 10 cm).Maybe i can get one made if you have the link of circuit diagrams from making such a battery backed power supply.Been trying to find this online but not happening.Thanks

19
Technical support / Re:PRINT AND INCOMM keywords
« on: May 31, 2011, 09:27:11 AM »
It works like this
when i send an AT+CMGS Command from the plc to the modem,the modem responds by sending a > character.After recieving this >character i need to send the necessary message,hence the > needs to be in the comm1 port.So do you mean that i can use the INCOMM keyword.However do i need to read in the ASCII format or as > character?

20
Technical support / PRINT AND INCOMM keywords
« on: May 31, 2011, 09:10:41 AM »
I need to use the PRINT or the INCOMM keyword to check if the modem which is serially connected to my COMM1 has responded.That is when i send an AT+CMGS="+44XXXX" msg from my PLC it sends an response character(>),after which i send the required message using the print command.I just need to check if the character is in COM1 port without deleting it from here(the print and incomm seem to remove it from port1).Is there another keyword to do this?

21
Technical support / Re:GSM modem with PLC interfacing
« on: May 25, 2011, 10:36:53 AM »
Hello i have created the ladder logic as shown in the attached diagram.
The function ds    is PRINT #1 "AT+CMGF="+"1"
The function sd is PRINT #1 "AT+CMGS="+CHR$(34)+"+447584133758"+CHR$(34)
The function vb is PRINT #1 "HELLO"+CHR$(26)

The problem is that i get a text message as
at+cmgf=1
at+cmgs="+447584133758"
hello

How do i get rid of the first 2 lines and just get hello as the message on the Mobile.

22
Technical support / Re:GSM modem with PLC interfacing
« on: May 25, 2011, 07:54:31 AM »
Also the function(send SMS) is given as below
PRINT #1 "AT+CMGF="+"1"
PRINT #1 "AT+CMGS="+CHR$(34)+"+447584133758"+CHR$(34)
PRINT #1 "HELLO"+CHR$(26)
      Clock 1min                  sendSMS
|-------| |------------------{dCusF}

Is this code alright? It does not seem to be sending a message to my phone.

23
Technical support / Re:GSM modem with PLC interfacing
« on: May 25, 2011, 05:28:35 AM »
Oh yes ,have rectified that.But not getting the SMS sent to the mobile.Is it a problem with the RS232 cable?I have a rs 232 with db9 male ends at boths sides.In your manual you say that to connect COMM1 to another DCE device (e.g., a modem), you need to make a special cable
which swaps the transmit and receive signals.Do i need to do this?

24
Technical support / Re:GSM modem with PLC interfacing
« on: May 24, 2011, 09:22:13 AM »
PRINT #1 "AT+CMGF="+"1"
PRINT #1 "AT+CMGS="+CHR$(34)+"00447584133453"+CHR$(34)
PRINT #1 "HELLO"+CHR$(60)+CHR$(26)+CHR$(62)
 This is what i send to COM1 but dont get a response on my phone,however when i send the same commands using hyper terminal i can send the message.Once i transfer the program i simulate it(continue run).What might be the problem?

25
Technical support / Re:GSM modem with PLC interfacing
« on: May 24, 2011, 06:42:02 AM »
OK i used the following commands to send SMS(hello) from hyperterminal of pc
at+cmgf=1
AT+CMGS="+31638740161" <ENTER on the keyboard>
Hello  and then <CTRL-Z on the keyboard>

The same can commands can be saved as the send sms function as this

PRINT #1 "AT+CMGF="+"1"
PRINT #1 "AT+CMGS="+CHR$(34)+"+447584133750"+CHR$(34)
PRINT #1 "HELLO"

But my problem is how do i represent the <CTRL-Z> in the function

26
Technical support / Problem with PLC?
« on: May 23, 2011, 07:28:06 AM »
i am not receiving any kind of response from my FMD88-10 PLC when i connect it using RS232 cable.It was working fine all these days but now its not responding at all.I can see the RTC error LED glowing does this mean something?I am in the UK and my project deadline is soon approaching:(

27
Technical support / Re:GSM modem with PLC interfacing
« on: May 13, 2011, 08:05:29 AM »
I have not understood much from that post.
Yes i connect the modem VIA RS 232 to the plc, now the question is do i have to write the AT+CMGS command for sending a text in a function in the ladder diagram? For eg if digital output =1 then send "alert message" to the GSM Modem can be done by this?Kindly let me know if you have any better examples.Thanks

28
Technical support / GSM modem with PLC interfacing
« on: May 10, 2011, 06:31:13 AM »
Hello i was looking to interface the GSM Modem with the FMD-8810 PLC.The basic idea is to monitor a range of sensors with the FMD88-10 and put on the digital output if any of the sensors cross a particular threshold value.Now i was wondering how do i send this as an alarm message(saying that the light level is low for example) to a GSM mobile.Do i need a gsm modem with many inputs, where each input of the gsm modem is connected to each digital output of the plc? Can this modem which i have attached serve this purpose.how do i go about this? thanks

29
Technical support / Re:Smoke and Fire Sensor
« on: May 03, 2011, 07:49:23 AM »
It is working fine now :) But when i use tri logic to store the values of the digital input(in X register) it runs for a while and then gives me an error message saying error in node1 and tri logic gets hung.

30
Technical support / Re:Smoke and Fire Sensor
« on: May 03, 2011, 01:45:29 AM »
I have done this.But when the PIR senses something and when the red light in the PIR is about to turn off, the digital input light in the plc turns on for a fraction of a second.

Pages: 1 [2] 3