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

I was not able to read a tag value in a controller.. #9

Closed
GeneL opened this issue May 17, 2022 · 2 comments
Closed

I was not able to read a tag value in a controller.. #9

GeneL opened this issue May 17, 2022 · 2 comments

Comments

@GeneL
Copy link

GeneL commented May 17, 2022

I was not able to read a tag in a controller with this command:

let mut client =
AbEipConnection::new_host_lookup("xx.xx.xx.xx", OpenOptions::default()).await?;
println!("read tag...{:?}", client);
let tag1 = EPath::from_symbol("Cfg_LoSeverity");
println!("read tag...{:?}", tag1);
let value: TagValue = client.read_tag(tag1.clone()).await?;
println!("read tag...{:?}", value);
client.close().await?;

This is the output:
read tag...Connection { addr: xx.xx.xx.xx:44818, origin_options: OpenOptions { o_t_connection_id: 0, t_o_connection_id: 0, priority_tick_time: 3, timeout_ticks: 250, connection_serial_number: 6332, vendor_id: 255, originator_serial_number: 4294967295, o_t_rpi: 16960, t_o_rpi: 16960, timeout_multiplier: 3, connection_path: EPath([Port(PortSegment { port: 1, link: b"\0" }), Class(2), Instance(1)]), o_t_params: ConnectionParameters { redundant_owner: false, connection_type: P2P, variable_length: Fixed, priority: High, connection_size: 504 }, t_o_params: ConnectionParameters { redundant_owner: false, connection_type: P2P, variable_length: Fixed, priority: High, connection_size: 504 }, transport_direction: Server, transport_class: Class3, transport_trigger: Application, large_open: false }, connected_options: None, service: None, seq_id: 0 }

read tag...EPath([Symbol("Cfg_LoSeverity")])

Error: Custom { kind: "custom", msg: "forward open failed" }


@Joylei
Copy link
Owner

Joylei commented Jun 19, 2022

The error msg said forward open failed. You can try without forward open.

@Joylei
Copy link
Owner

Joylei commented Mar 3, 2023

closed. please reopen if you still have problems.

@Joylei Joylei closed this as completed Mar 3, 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