Newbies BDeV Posted April 30, 2020 Newbies Posted April 30, 2020 We have FM tied in to our department notification systems. We are attempting to use an industrial PLC to trigger one of these notifications. We have written an in-house application to connect with the PLC in C#, now we are attempting to get that C# application to run a script on the FM server. Any thoughts? We have attempted to use the FMdotNet__DataAPI, that however, is not working because of an SSL issue, namely we are running the default certificate. Here are some code snippets for the integration of FMdotNet__DataAPI: var fmserver = new FMS18(server, testAccount, testPassword); // server is the IP address, however we can change that to <computername>.local fmserver.SetFile(testFile); // the DB file on the server token = await fmserver.Authenticate(); // after the above line, token is "Error - Object reference not set to an instance of an object." If there is an easier way to communicate with the server, i will happily accept suggestions. Like i said before, we only need to run a single script (all vanilla FM script steps).
Wim Decorte Posted May 1, 2020 Posted May 1, 2020 (edited) If getting an SSL cert is not an option (the default FMI cert does not cover client-to-server communications) then turn on the old XML API on the server and use the old fmDotNet library that is a wrapper around the XML API. Edited May 1, 2020 by Wim Decorte
Recommended Posts
This topic is 1666 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now