91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 271KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-13
  • 語言: Java
  • 標簽: JAVA8??PLC??Socket??

資源簡介

使用java8 scoket 實現西門子s7協議 可以讀寫 s7系列全部plc 沒有dll 文件 純原生java

資源截圖

代碼片段和文件信息

/*
?*?PROJECT?Mokka7?(fork?of?Snap7/Moka7)
?*
?*?Copyright?(c)?2017?J.Zimmermann?(comtel2000)
?*
?*?All?rights?reserved.?This?program?and?the?accompanying?materials?are?made?available?under?the
?*?terms?of?the?Eclipse?Public?License?v1.0?which?accompanies?this?distribution?and?is?available?at
?*?http://www.eclipse.org/legal/epl-v10.html
?*
?*?Mokka7?is?distributed?in?the?hope?that?it?will?be?useful?but?WITHOUT?ANY?WARRANTY;?without?even
?*?the?implied?warranty?of?MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE?whatever?license?you
?*?decide?to?adopt.
?*
?*?Contributors:?J.Zimmermann?-?Mokka7?fork
?*
?*/
package?org.comtel2000.mokka7.client;

import?org.comtel2000.mokka7.client.presentation.MainView;
import?org.comtel2000.mokka7.client.service.SessionManager;
import?org.comtel2000.mokka7.metrics.MonitoredS7Client;
import?org.slf4j.LoggerFactory;

import?com.airhacks.afterburner.injection.Injector;

import?javafx.application.Application;
import?javafx.beans.property.SimpleDoubleProperty;
import?javafx.scene.Scene;
import?javafx.scene.image.Image;
import?javafx.stage.Stage;


public?class?Mokka7App?extends?Application?{

????private?final?static?org.slf4j.Logger?logger?=?LoggerFactory.getLogger(Mokka7App.class);

????private?final?SimpleDoubleProperty?sceneWidthProperty?=?new?SimpleDoubleProperty(1024);
????private?final?SimpleDoubleProperty?sceneHeightProperty?=?new?SimpleDoubleProperty(600);

????@Override
????public?void?start(Stage?stage)?throws?Exception?{

????????String?version?=?Mokka7App.class.getPackage().getImplementationVersion();

????????stage.settitle(String.format(“Mokka7?client?v.%s“?version?!=?null???version?:?“DEV“));
????????stage.setResizable(true);

????????Injector.setLogger((t)?->?logger.trace(t));

????????Injector.setModelOrService(MonitoredS7Client.class?new?MonitoredS7Client());

????????SessionManager?session?=?Injector.instantiateModelOrService(SessionManager.class);
????????session.setSession(getClass().getName().toLowerCase());
????????session.loadSession();

????????session.bind(sceneWidthProperty?“scene.width“);
????????session.bind(sceneHeightProperty?“scene.height“);

????????MainView?main?=?new?MainView();

????????final?Scene?scene?=?new?Scene(main.getView()?sceneWidthProperty.get()?sceneHeightProperty.get());
????????stage.setOnCloseRequest((e)?->?{
????????????sceneWidthProperty.set(scene.getWidth());
????????????sceneHeightProperty.set(scene.getHeight());
????????????Injector.forgetAll();
????????????System.exit(0);
????????});
????????stage.setScene(scene);
????????Image?icon16?=?new?Image(getClass().getResourceAsStream(“icon-16x16.png“));
????????Image?icon32?=?new?Image(getClass().getResourceAsStream(“icon-32x32.png“));
????????Image?icon48?=?new?Image(getClass().getResourceAsStream(“icon-48x48.png“));

????????stage.getIcons().addAll(icon16?icon32?icon48);

????????stage.show();

????}

????public?static?void?main(String[]?args)?{
????????launch(args);
????}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-05-21?10:12??mokka7-master\
?????文件?????????182??2017-05-21?10:12??mokka7-master\.gitignore
?????文件?????????213??2017-05-21?10:12??mokka7-master\.travis.yml
?????文件???????11514??2017-05-21?10:12??mokka7-master\LICENSE
?????文件????????2250??2017-05-21?10:12??mokka7-master\README.md
?????目錄???????????0??2017-05-21?10:12??mokka7-master\doc\
?????文件???????36847??2017-05-21?10:12??mokka7-master\doc\chart.png
?????文件???????24321??2017-05-21?10:12??mokka7-master\doc\read_write.png
?????文件???????20040??2017-05-21?10:12??mokka7-master\doc\sys_info.png
?????文件???????12637??2017-05-21?10:12??mokka7-master\epl-v10.html
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\
?????文件????????2461??2017-05-21?10:12??mokka7-master\mokka7-client\pom.xml
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\macosx\
?????文件???????94561??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\macosx\mokka7.icns
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\windows\
?????文件????????3806??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\windows\mokka7-setup-icon.bmp
?????文件??????370070??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\deploy\package\windows\mokka7.ico
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\
?????文件????????2969??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\Mokka7App.java
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\control\
?????文件????????5106??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\control\HexTableView.java
?????文件?????????463??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\control\hex-table.css
?????目錄???????????0??2017-05-21?10:12??mokka7-master\mokka7-client\src\main\java\org\comtel2000\mokka7\client\presentation\
............此處省略117個文件信息

評論

共有 條評論