Giter VIP home page Giter VIP logo

adapter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adapter's Issues

Building adapter for LinuxCNC

Hi
I am trying to compile the adapter for LinuxCNC. I have a fresh environment installed using their downloadable ISO file.

I was able to clone the repository and attempt to make it. At first, some files were missing, so I found those in /usr/include/linuxcnc/. I created a new directory in the emc folder and copied the included files into it.

cp /usr/include/linuxcnc/* emc2/

I then had to make some changes to the Makefile to account for the new naming, since everything is now named LinuxCNC instead of EMC.

Here is the Makefile after my changes: (note changes made to lines 1 and 3)

CXXFLAGS = -g -I/usr/include/linuxcnc -I../src
LDFLAGS =
LIBS=-llinuxcnc -lnml -llinuxcncini

vpath %.hpp ../src ../include
vpath %.cpp ../src

all: adapter

adapter: emc.o device_datum.o string_buffer.o string_array.o client.o server.o adapter.o emc_adapter.o logger.o service.o
        g++ ${CXXFLAGS} ${LDFLAGS} -o adapter $+ ${LIBS}

device_datum.o: device_datum.cpp device_datum.hpp string_buffer.hpp

string_buffer.o: string_buffer.cpp string_buffer.hpp

client.o: client.cpp client.hpp

server.o: server.cpp server.hpp client.hpp

adapter.o: adapter.cpp adapter.hpp server.hpp client.hpp

emc.o: emc.cpp emc_adapter.hpp adapter.hpp

emc_adapter.o: emc_adapter.cpp emc_adapter.hpp adapter.hpp server.hpp client.hpp

string_array.o: string_array.cpp string_array.hpp

logger.o: logger.cpp logger.hpp

service.o: service.cpp

I was able to get it to compile successfully, but when I attempt to execute ./adapter, I get Segmentation Fault

What am I doing wrong?

Best practices advice for devices.xml file

I just had an " issue" with the agent where I had to switch to SchemaVersion = 1.3 in the config.cfg file in order for it top display any data

This brings up my question:
I "assume" this is related to my device/xml file setup section see JPEG [RED SQUARE] ?
More important - these references seem to be pointing to an online location now?
Is that the proper way of doing this or should these references be located on site ?
- I'm not necessary locking for a solution here - I'm just trying to understand how this usually is implemented ..
As this agent will be installed in a location with XXX machines from different machine builders I would assume the company IT department would want all agent(s) to pull from the same reference location (Locally I assume)
Am I on the right path here with my thinking or am I missing something ? :-)
= I assume the Company IT department will provide the link(s) to the actual reference locations /schemas to be used.
image

Act position value issue

Hello,

I am receiving same value for Xact, Yact and Zact. I don't know what is happening but for example load in different axis is OK.

Fanuc multipath-custom macros

This may not be a particular issue related to the adapter but this seems to be the best place to ask. Anyways I am trying to read the custom macros on a 30i-B but i am only able to read the first path. How can i read another path's (4 in my case) macros without the use of common macros across the cnc? or is this even possible. I have not had much luck finding any info regarding this particular issue. Any help would be greatly appreciated.

Compile error

I can't compile fanuc.sln (from master).
The error is: Impossible to open ..\Fwlib\fwlib30i.lib
I was not able to find fwlib30i.lib.

How to connect multiple fanuc machine using one adpater

hi ,

I have created fanuc adapter using visual studio. now I am using multiple adapters and writing IP in adapter config file. can we connect all machines using one adapter??

How we can run adapter as a window service. now I need to give fanuc_0id debug command from cmd . i want to run it as a service.

Please help

Fanuc Adapter - Mem Usage on 200mb and rising

I installed a Fanuc Adapter on a Raspberry (Debian) and the memory usage increased substantially in less than a day

When I run the pmap command I get this:

636: /home/pi/fanuc/adapter adapter.ini
00010000 112K r-x-- adapter
0003b000 4K r---- adapter
0003c000 4K rw--- adapter
00c90000 200396K rw--- [ anon ]
76ad2000 1248K r-x-- libc-2.28.so
76c0a000 64K ----- libc-2.28.so
76c1a000 8K r---- libc-2.28.so
76c1c000 4K rw--- libc-2.28.so
76c1d000 12K rw--- [ anon ]
76c20000 112K r-x-- libgcc_s.so.1
76c3c000 60K ----- libgcc_s.so.1
76c4b000 4K r---- libgcc_s.so.1
76c4c000 4K rw--- libgcc_s.so.1
76c4d000 452K r-x-- libm-2.28.so
76cbe000 60K ----- libm-2.28.so
76ccd000 4K r---- libm-2.28.so
76cce000 4K rw--- libm-2.28.so
76ccf000 1208K r-x-- libstdc++.so.6.0.25
76dfd000 64K ----- libstdc++.so.6.0.25
76e0d000 20K r---- libstdc++.so.6.0.25
76e12000 8K rw--- libstdc++.so.6.0.25
76e14000 8K rw--- [ anon ]
76e16000 92K r-x-- libpthread-2.28.so
76e2d000 60K ----- libpthread-2.28.so
76e3c000 4K r---- libpthread-2.28.so
76e3d000 4K rw--- libpthread-2.28.so
76e3e000 8K rw--- [ anon ]
76e40000 872K r-x-- libfwlib32.so.1.0.5
76f1a000 28K ----- libfwlib32.so.1.0.5
76f21000 4K r---- libfwlib32.so.1.0.5
76f22000 4K rw--- libfwlib32.so.1.0.5
76f23000 16K r-x-- libarmmem-v7l.so
76f27000 60K ----- libarmmem-v7l.so
76f36000 4K r---- libarmmem-v7l.so
76f37000 4K rw--- libarmmem-v7l.so
76f38000 128K r-x-- ld-2.28.so
76f5c000 8K rw--- [ anon ]
76f66000 8K rw--- [ anon ]
76f68000 4K r---- ld-2.28.so
76f69000 4K rw--- ld-2.28.so
7e8f8000 132K rw--- [ stack ]
7ec36000 4K r-x-- [ anon ]
7ec37000 4K r---- [ anon ]
7ec38000 4K r-x-- [ anon ]
ffff0000 4K r-x-- [ anon ]
total 205320K

This is around 20% of the memory usage of raspberry (1Gb of Ram)

Negative PMC Addresses incorrect

Hello,

Line 378 of fanuc_adapter.cpp incorrectly handles negative return values. A simple change to: mPMCVariable[i]->setValue(-buf.u.cdata[0] + 128); to return a decimal value of 0 to 255.

Outstanding work, thank you very much for your vision.

MT connect error with fanuc Result: -15 error

Hello ,

I am trying to get data from fanuc 0id using this mtconnect agent .Build getting successful but after that data is not being display on browser as well as cmd .

img-20181016-wa0001

Connecting to machine at 192.168.1.1 and port 8193
Result: -15.

When i ping cnc ip from cmd and vice versa its working fine not getting any error .

Whats wrong here . what could be issue ?

Large Part Counter Values with Fanuc Adapter

Large part counter values that exceed 32768 are not reported properly. If the part count is <=32768 then it reports the correct value. For example, if the Fanuc CNC's part counter is set for 32769 for example then the value that is returned is -32767.

Thanks,

Jim Abbassian & David Smither

Question regarding devices.xml file

I am trying to connect the adapter with agent. How can I create or generate a devices.xml file specific to my fanuc cnc machine . Is it automatically generated by the fanuc mt connect adapter . Any ideas anyone ?

Part count to getting change to very high value in FANUC CNC

Hi all,

I am running adapter on cnc machine .but intermittently facing issue that part count value is changing from some value (like 2000 to 599999) to very high value . and its than increasing from same high value .some time from again for 20-50 min showing same lower value like (599999 to 2000)however all other value is same .i am unable to understand why this is happening .

Below is CMD log.

dding pmc 'SspeedOvr' at location 30
Adding pmc 'Fovr' at location 12
2022-08-25T17:31:31.088Z - Info: Server started, waiting on port 7878
2022-08-25T17:31:31.202Z - Info: Connected to: 127.0.0.1 on port 60928
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-25T17:31:31.558Z - Info: Configuring...

2022-08-25T17:31:31.560Z - Info: Configuration for path 1:
2022-08-25T17:31:31.562Z - Info: Max Axis: 32
2022-08-25T17:31:31.563Z - Info: CNC Type: 0
2022-08-25T17:31:31.564Z - Info: MT Type: M
2022-08-25T17:31:31.566Z - Info: Series: D5
2022-08-25T17:31:31.568Z - Info: Version: 11
2022-08-25T17:31:31.569Z - Info: Axes: 04
2022-08-25T17:31:31.599Z - Info: Axis 0 : X
2022-08-25T17:31:31.601Z - Info: Axis X #0 - actual (unit 0 flag 0x15)
2022-08-25T17:31:31.604Z - Info: Units: mm
2022-08-25T17:31:31.608Z - Info: Axis 1 : Y
2022-08-25T17:31:31.612Z - Info: Axis Y #1 - actual (unit 0 flag 0x15)
2022-08-25T17:31:31.626Z - Info: Units: mm
2022-08-25T17:31:31.632Z - Info: Axis 2 : Z
2022-08-25T17:31:31.638Z - Info: Axis Z #2 - actual (unit 0 flag 0x15)
2022-08-25T17:31:31.643Z - Info: Units: mm
2022-08-25T17:31:31.646Z - Info: Axis 3 : A
2022-08-25T17:31:31.649Z - Info: Axis A #3 - actual (unit 0 flag 0x5)
2022-08-25T17:31:31.657Z - Info: Units: mm
2022-08-25T17:31:31.685Z - Info: Spindle 0 : S1
2022-08-25T17:31:31.688Z - Info: Current path: 1, maximum paths: 1
2022-08-25T17:31:31.973Z - Warning: Cannot cnc_rdntool for path 1: 0
2022-08-25T17:31:31.976Z - Warning: Trying modal tool number
2022-08-25T22:30:03.058Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-25T22:52:58.690Z - Error: cnc_rdsvmeter failed for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-25T23:43:48.449Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-25T23:45:46.069Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-26T00:28:49.353Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-26T01:15:08.606Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-26T01:23:46.861Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0
2022-08-26T01:25:37.592Z - Warning: cnc_modal failed for T on path 1: -16
Could not retrieve PMC data at 30 for SspeedOvr: -16
Could not retrieve PMC data at 12 for Fovr: -16
2022-08-26T01:25:37.701Z - Error: Cannot cnc_rdexecprog for path 1: -16
Machine has disconnected. Releasing Resources
Connecting to Machine at 192.168.1.8 and port 8193
Result: 0

![image](https://image

Haas adapter

How do you set the COM port for the adapter? It looks like there is a variable for the COM port number, but I could not tell if I need to set it in the source code or if there is a way to set it in the configuration file.

Fanuc Adapter

I have been attempting to set this adapter up to a series 30i Fanuc controller with the focas2 libraries. I have followed the example on

http://www.ellisware.com/wordpress/mtconnect-adapter-for-windows/

I am trying to check the adapter using
telnet 127.0.0.1 7878
My results are from the adapter:
Connecting to Machine at 10.81.1.46 and port 8193
Result: -15

from telnet:
telnet screen

(Connection to host lost happens when I stop the adapter, I meant to not copy that part.)

From the example youtube video, it appears that it when you get -15, it isn't connecting to the machine. I setup wireshark to see if it was sending anything to the machine, I did not see any traffic coming from the adapter.

Adapter.ini:
[adapter]
port = 7878
service = MTC Focus 1

[focus]
host = 10.81.1.46
port = 8193

[macros]

[pmc]
SspeedOvr = 30
Fovr = 12

I also set the machine ip address and port. Does anyone have any ideas what I am missing?

Using the Modbus Adapter

I've managed to create my MTConnect via the C++ agent, and was wondering how I might go about adding this Modbus adapter to read and record some data. I see that there is a master.rb ruby file that I'm guessing might act as the adapter, but it keeps giving me an error when I try to run it.

<internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- serialport (LoadError)
        from <internal:C:/Ruby31-x64/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb>:85:in `require'

if anyone has any advice on getting this setup, it would be greatly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.