Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infinite reading... #13

Closed
wotori opened this issue Mar 1, 2023 · 3 comments
Closed

infinite reading... #13

wotori opened this issue Mar 1, 2023 · 3 comments

Comments

@wotori
Copy link

wotori commented Mar 1, 2023

Used the default example and stuck on infinite reading tag with no errors follow...

use anyhow::Result;
use rseip::client::ab_eip::*;
use rseip::precludes::*;

#[tokio::main]
pub async fn main() -> Result<()> {
    let mut client = AbEipClient::new_host_lookup("192.168.1.2")
        .await?
        .with_connection_path(PortSegment::default());
    let tag = EPath::parse_tag("Temperature")?;
    println!("read tag...");
    let value: TagValue<i32> = client.read_tag(tag.clone()).await?;
    println!("tag value: {:?}", value);
    // client.write_tag(tag, value).await?;
    // println!("write tag - done");
    client.close().await?;
    Ok(())
}
Compiling wintek_rust v0.1.0 (/Users/user/git/foam/project)
    Finished dev [unoptimized + debuginfo] target(s) in 0.53s
     Running `target/debug/project`
read tag...
@Joylei
Copy link
Owner

Joylei commented Mar 3, 2023

Is it AB PLC?

@wotori
Copy link
Author

wotori commented Mar 7, 2023

Is it AB PLC?

AB stands for what? Allen-Bradley?

@Joylei
Copy link
Owner

Joylei commented Jul 29, 2023

Allen-Bradley PLC is well supported by this library.
omron controller is not supported.

@Joylei Joylei closed this as completed Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants