I tried my new circuit with the optocouplers using 270k for R5 & R6 and 1k for R3 & R4.
It works within the limits of +0v and about -22v. It is interesting that the other circuit did not work for low + bias. It must be the slower positive edge as someone mentioned. I will use about +30 and -30v, whatever the rectified transformer gives.
This is my preliminary software. It only counts up at present from 0 to 9 fast (10Hz) slowing down to 1Hz then repeating. The delay between the steering pulses depends on the speed so at 1 Hz you can actually see every pin lit. I thought it a waste to not see them. I have not fully tried this software, only a Dekatron test version, so if there are errors please forgive me. There is a BCD version that also works. I may add a "Spinner" between 0 to 9 counts in place of the 2 second delay, 1 second forwards and 1 second backwards.
// main loop
while (1) // loop endlessly
{
for(j=1;j<=10;j++) // sets the delays
{
for(i=0;i<=9;i++) // the BCD digit displayed (Nixies, etc)
{
// generate clock and BCD
output_high(pin_C4); // high for 10 uS
delay_us(10);
output_low (pin_C4); // end pulse
portC = i; // output BCD
// Dekatron clocking
output_high(pin_A5); // steering ring 1
delay_ms(j*50);
output_high(pin_A4); // steering ring 2
delay_ms(j*50);
output_low (pin_A5);
delay_ms(j*50);
output_low (pin_A4);
// period of sequence
delay_ms(j*100); // set period
} //end for i loop
delay_ms(2000); // wait 2 seconds after each 0 to 9 count
} //end for j loop
} //end of endless while loop
} // end of main function