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

Pages: [1] 2
1
Technical support / Re:Hostlink
« on: April 30, 2011, 04:32:36 PM »
I am not sure how to put this all together. Would it be possible for you to provide a sample that I can refer to. I looked at testEthernet.PC6 but am unsure which part I need to use.


Thanks,


Paul

2
Technical support / Re:Hostlink
« on: April 30, 2011, 04:09:05 PM »
The port I am connecting to on the ELk panel does not require a user name or password. Would I leave these blank?

3
Technical support / Re:Hostlink
« on: April 30, 2011, 03:51:56 PM »
Below is the lastest code I have. The connection keeps toggeling open and closed. When the connection is open I can send something from the Elk panel and see it in D$. I removed the PRINT #4 "</>" but it seems the connection is toggeling.


PRINT #4 "<TCPCONNECT 192.168.1.101:2101>"

FOR I = 1 TO 10000
 C$ = INPUT$(4)

 IF LEN(C$) > 0
 D$ = C$
 Endif  'new command available in TRiLOGI 6.4 and higher

NEXT

IF STATUS(3) = 1
 
A = 1

ELSE
 A = 6    'connection failed,  exit function
ENDIF


4
Technical support / Re:Hostlink
« on: April 30, 2011, 02:38:58 PM »
How do I keep the connection open all the time?

5
Technical support / Re:Hostlink
« on: April 30, 2011, 02:00:34 PM »
D$ is showing ERR:05 Prev Conn On.

I am trying to get the communication established and to transfer data ( it does not matter if the format is wrong, once I get the data flowing I can work on the format)


A is toggeling betwen 6 and 1.

6
Technical support / Re:Hostlink
« on: April 30, 2011, 12:46:52 PM »
I will have to check with Elk regarding the CRC. Here is what their RS_232 Protocol document says " Error Checking
The transmission contains checksum and packet length error checking. No acknowledge or re-transmission capability is implemented."

Unfortunetly the serial port is how i connect to the Elk panel with my PC. So I have to use Ethernet.

I have the following code working and I am receiving a 1 and a 6 indicating I am connecting to the ELk panel from the PLC, I think.

How do I read the data from input 4


FOR I = 1 TO 10000
 C$ = INPUT$(4)

 IF LEN(C$) > 0
 D$ = C$
 Endif  'new command available in TRiLOGI 6.4 and higher
 
NEXT

IF STATUS(3) = 1
 
A = 1

ELSE
 A = 6    'connection failed,  exit function
ENDIF

Print #4 "</>"


7
Technical support / Re:Hostlink
« on: April 30, 2011, 08:38:44 AM »
Not sure if this will help, but here is the entire email.

The M1XEP does connect to Serial Port 0 on the M1 Gold. If the Maples Systems can communicate over LAN and if you understand "socket" programming and TCP/IP connections, it is a fairly simple process.

 

As you know, the M1 requires our M1XEP Ethernet Expander module to connect to a local network and the Internet.  Look at the M1XEP as a simple "pass-through" device.  Once you make a socket connection to it, your remote application can send and receive packets to/from the M1 using the M1's ASCII Protocol.  These messages simply pass through the XEP to the M1 and vice-versa.  

To demonstrate:

1) First, enable G35 - G40 in the M1, either through the keypad programming menus or using ElkRP.  This causes the M1 to send ASCII messages for all status changes out its serial port to the XEP.

2) Connect the M1 to an XEP and connect the XEP to a LAN.  Using ElkRP, set up the XEP's IP address, etc.

3) Open HyperTerminal and make a Winsock connection to the IP address of the XEP, on the non-secure port (2101).

4) You should see ASCII messages appear in the HyperTerminal window as things happen in the M1 (zones open, arm/disarm, etc.).

5) If you were to QUICKLY type an ASCII command, including CRC, and press enter, it would be sent through the XEP to the M1.  Timing here is tricky, because you must type the whole command in-between receiving messages.  A program could easily do it, though.

 

This demonstrates communication via a LAN.  Communication via the Internet is similar.  In that case, the XEP would be connected to a router which has a cable modem or DSL connection to the Internet.  The router must be programmed to forward port 2101 from the Internet side to the XEP side.  Then, any PC on the Internet can use HyperTerminal to connect to the router's IP address on port 2101.

 

HOWEVER: Since port 2101 is "non-secure," we do not recommend forwarding it on the Internet.  You could do so temporarily just for testing and set-up, but it is not a permanent solution - it allows ANYONE to connect to your XEP and thus, your M1.  Therefore, the XEP has a "secure" port - port 2601 by default.  If you connect to this port, the XEP will negotiate a secure SSL/TLS connection with the remote connecting site.  The remote site will need to accept the XEP's certificate.  Then the XEP will prompt for a username and password (these are set up using ElkRP).  If the remote site responds with the correct username and password, the connection is allowed and everything works from there on as described above, except that the data sent over the wire is now automatically encrypted.  If you intend to write a program to do this, you will need to already know or learn about the SSL/TLS protocol and how to implement it in your chosen programming language.  Helping you learn that is beyond the scope of what Elk Products can do.

 

I hope this helps.  If we can be of further assistance, please let us know.


8
Technical support / Re:Hostlink
« on: April 30, 2011, 08:20:01 AM »
Below is what Elk told me their panel can do.

Good afternoon Paul,

 

The M1XEP does connect to Serial Port 0 on the M1 Gold. If the Maples Systems can communicate over LAN and if you understand "socket" programming and TCP/IP connections, it is a fairly simple process.


As you know, the M1 requires our M1XEP Ethernet Expander module to connect to a local network and the Internet.  Look at the M1XEP as a simple "pass-through" device.  Once you make a socket connection to it, your remote application can send and receive packets to/from the M1 using the M1's ASCII Protocol.  These messages simply pass through the XEP to the M1 and vice-versa.  


9
Technical support / Re:Hostlink
« on: April 30, 2011, 07:27:52 AM »
The Elk does not have a server, so nothing is returned. Suport suggested to use the code below, but it did not work, so I tried to write my own code.


PRINT #4 "<TCPCONNECT 192.168.1.101:2101>"

FOR I = 1 TO 10000
 C$ = INPUT$(4)

 IF LEN(C$) > 0
  D$ = C$
  EXIT    'new command available in TRiLOGI 6.4 and higher
 ENDIF
NEXT

IF STATUS(3) = 1
 'ADD CODE

ELSE
 RETURN    'connection failed,  exit function
ENDIF

Print #4 "</>"


10
Technical support / Re:Hostlink
« on: April 30, 2011, 05:35:53 AM »
Sorry about that. The connection between the Elk and the PLC will be Ethernet, and the connection between the PLC and the HMI will be RS-485.

I know how to make the PLC and HNI work together, I am looking for help on getting the Elk and the PLC working together.

Thanks

Paul

11
Technical support / Hostlink
« on: April 29, 2011, 04:36:05 PM »
I have been working with Shaun from tech support, and he has been great, but I am having some trouble getting started.

I am trying to connect an Elk M1 gold security panel to a Maple Systems 550H HMI. Since I cannot directly connect these 2 devices, I decided to use an F1616-R.

The devices will be connected via TCP/IP, and communicate via ASCII protocol.

Would it be possible for someone to provide a example to get me started. Below is what I have that does not seem to be working correctly.

PRINT #4 "<TCPCONNECT 192.168.1.101:2101>"

FOR I = 1 TO 10000
 C$ = INPUT$(4)

 IF LEN(C$) > 0
  D$ = C$
 Endif

Print #4 "</>"

12
Technical support / Counter
« on: May 31, 2010, 10:44:37 AM »
I am trying to sense to many time per day my air conditioner runs. I installed a switch in the duct work that has a paddle in it. When the fan turen on the switch is made. The switch is made until the fan turns off.

I want to increment the counter by 1 when the switch is made. The reset the trigger (Input 1) and wait for the next time the switch is mad to increment the counter.

Any Ideas?

I tried the code below


If testbit(Input[1],1)then
C = C+1
Endif

13
Technical support / Setting Variables
« on: January 16, 2010, 06:06:13 AM »
I have a time of day based custom function running. I can turn on and off out puts based on time of day and day of week. I am trying to be bale to override the time of setting by seeing if a input is set. When I compile the program , I get a error stating the name is incorrect.

Code is below.

@10   If RLY[1]=1 goto @90
@20   Else
@30   If Date[4]>=1 and Date[4]<=5 and TIME[1]>7 and TIME[1]<16
@40   CLRIO PWR_TV
@50   CLRIO PWR_COMP
@60   CLRIO SPARE_1
@70   CLRIO SPARE_2
@80   Else
@90   Setio PWR_TV
@100  Setio PWR_COMP
@110  ENDIF


14
Technical support / Re:Setting a DM location = to a counter value
« on: January 12, 2010, 02:46:54 PM »
This works, but the problem is when I reset the PLC or remove the power, the memory locations are cleared.

15
Technical support / Setting a DM location = to a counter value
« on: January 11, 2010, 03:26:52 PM »
I am wondering how to set a DM location = to a counter. The reason I am looking to dp this I want to read my counters into a mDM location in case of a pwr failure, I can then write them back to the counters and I do not lose any information.

Thanks Paul

Pages: [1] 2